Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 12704

Re: Boolean set to Mandatory but allows me to continue

$
0
0

I came up with a creative solution for validating that users at least check one checkbox on the form.

I created my Booleans and added to the window.

Added a new attribute named "You Must Select at Least one checkbox" and set it to hidden on the window.

I then created a dynamic window calculation that evaluates to see if at least one Boolean is checked. It nothing is checked then I leave the hidden attribute hidden but I set it to mandatory.  If at least one is checked I make that field not mandatory.

 

The error that appears if no Boolean is checked is:

 

You need to fill in the following mandatory fields: "You Must Select at Least one checkbox"


Viewing all articles
Browse latest Browse all 12704

Trending Articles