Checkbox Passes Validation (even if field is mandatory and unchecked)

How Can We Help?

< Back

Question

Why does the checkbox pass validation even though it is a mandatory field and the user did not check it?

Answer

The value of a checkbox always exists (i.e. True or False are both values). So, if it is made a mandatory field (e.g. an affirmation of action taken), you need to put an additional error trap in to display a custom message to user when it is not checked.

Below are the scripts to check in the command option or an invisible object:

Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X