Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

The mandatory date field was successfully saved after entering an invalid date

gongyiping
Tera Contributor

At the dictionary level, “Mandatory = true” is set.

The user entered an invalid date format on the form (e.g., 2025/13/99, a space, or half-width symbols).

After pressing the standard Save button, the record was successfully saved with the field left blank.

The “mandatory check” was not triggered. What is the reason for this?

5 REPLIES 5

Hi @gongyiping ,

 

Make sure the input for this should be of date type then it will show the calendar to select the date, not any other type of input. then you won't have any problem with wrong date format.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!