Question
CBA
AU
Last activity: 9 May 2020 2:56 EDT
validation rules for checkbox
I have a requirement like when checking the RestrictDays checkbox it will display all weekdays. then the user without selecting any one day if click on the submit button. it throws an error message like a user must select at least one operational day. how will we write validation rules?
Please refer to attachment.
***Edited by Moderator: Pallavi to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 9 May 2020 2:56 EDT
Blue Rose Technologies
DE
I just tried copying the link and pasting on browser and it worked even when I didn't login to collaborate.pega.com. Clicking on link was not working as you told. Could you please try again.
https://collaborate.pega.com/question/multiple-checkbox-validation-multiple-properties-it
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Are those 7 weekdays are 7 different properties or using pagelist and repeating dynamic layout to populate them?
CBA
AU
i have used all are individual properties and control type is true/false
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Use a when the rule to check if all the 8 properties(including Restrict Days) are not true with AND condition, use this when rule in Validate rule.
IN
Hi Sam,
Add disable condition on Weekends If Restricted is true then disable it.
Check for Weekdays in validate rule if restricted day is true
Check for all days in validate rule if restricted day is false
Hope this helps
Thanks
CBA
AU
Thanks for the reply, will it work for individual properties too
Blue Rose Technologies
DE
Since you confirmed you are using individual properties you can see approach mentioned in below post,
https://collaborate.pega.com/question/multiple-checkbox-validation-multiple-properties-it
CBA
AU
Thanks for the reply, Link is not working
Accepted Solution
Updated: 9 May 2020 2:56 EDT
Blue Rose Technologies
DE
I just tried copying the link and pasting on browser and it worked even when I didn't login to collaborate.pega.com. Clicking on link was not working as you told. Could you please try again.
https://collaborate.pega.com/question/multiple-checkbox-validation-multiple-properties-it
CBA
AU
Thanks for the reply, https://collaborate.pega.com/question/multiple-checkbox-validation-multiple-properties-it