Support Article
Obj-Validate rule wiping out the section field values on Submit
SA-22538
Summary
When submitting a flow action, the edit validate rule fires and catches the error only the first time. Without changing the incorrect values the user can submit again and proceed without triggering the validation rule.
Error Messages
Not applicable.
Steps to Reproduce
1. Create a section and add two date fields. Example: Start date and End date.
2. Create a flow-action corresponding to the above section, and configure obj-validate rule in flow action validate tab. Validation should fail if End date is before the Start date.
3. In run time enter End date less than Start date and click on Submit button. Observe that the validation error fires correctly, and the error message is observed.

4. Now again click on Submit button again, and observe that the date value wipes out.

Root Cause
This issue is observed becaue resetDatetimeHidden API empties the date field's value.
Resolution
Apply HFix-27123.
Published April 30, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.