LocalAction submission continues though pyWorkPage has errors
A local action has a section with a property of type DateTime. Onchange, an activity is configured, which throws validation messages using 'Page-Set-Messages'. Though there are errors, the local action gets submitted.
Steps to Reproduce
- Create a Section
- Include a Date Time Control.
- Configure change event for date time control
- Create an activity. Call the activity on change of date time control.
- Click on submit.
This is working as per design, page-clear-messages was added to support other usecases and that cannot be changed since it would break other use cases.
The activity which is called on change of field in row is running in the context of row and same activity cannot be used to validate in post processing of flow action. A new activity has to be created and check for validation and show the message accordingly.
User has been suggested to add an activity to validate the date field and include that in the post processing of the flow action.
Published September 8, 2016 - Updated September 17, 2016