You need to sign in to do that
Don't have an account?
VR to check that only one of three Check Boxes = TRUE?
Hi all
My minds not performing as well as it should today (late night :-) and grappling with this problem for about an hour and can't see a solution.
I have three check boxes (we'll say CheckBox1_c, CheckBox2_c and CheckBox3_c) that I need to validate that only 1 out of the 3 = TRUE and the rest are FALSE, but one must = TRUE, when the record is saved.
The error message to appear at the top of the page would be something like "You must choose at least one check box, and only one check box, in the XXXXXX Section. Please modify."
If anyone has any suggestions I'd really appreciate it.
Thanks,
Sean
here you go..
(Private__c == true && (Public__c==true || both__c == true)) ||
(Public__c == true && (Private__c==true || both__c == true)) ||
(both__c == true && (Public__c==true || Private__c == true))
replace field names with your fields names
All Answers
here you go..
(Private__c == true && (Public__c==true || both__c == true)) ||
(Public__c == true && (Private__c==true || both__c == true)) ||
(both__c == true && (Public__c==true || Private__c == true))
replace field names with your fields names
PERFECT. Thanks Venky. You're a legend.
Yea very nice. I was that tired that I forgot it was 4 check boxes, not 3, but I just expanded it out to include the 4th.
Thanks again venky.