
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
So you have a catalog item with multiple checkbox variables and at least one must be selected before the user can submit the request.
How can you validate at least one of the options has been selected?
How can this be done easily without the need of writing a script to check each checkbox to see if at least one of them has been selected?
I found the answer was actually very easy to do with a simple variable setup and a UI Policy.
First we need to define our Label and our Checkbox options. The Label is the key!
We then need to create our UI Policy that will drive our mandatory selection requirement
Now we set our UI Policy action to affect our Label that we created to contain our Checkbox options
So now our form will show our options as mandatory!
And if we try to order this item without selecting any checkbox option....?
Once we have an option selected, our mandatory requirement is met and can be seen by our red mandatory mark going away!
And there it is! A simple and easy way to ensure checkboxes are selected without the need of any scripts!
- Mike Pryor
- 15,029 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.