
Hi Again
I need to be able to limit tick box choices for a dynamics portal web form section.
Basically, the form section will have 5 Booleans set as check boxes. The question will say choose 2 of the following. If someone chooses 3, I need validation to prevent the form proceeding, display a message to say they have chosen 3 and to correct the error.
The form section is called
Choose 2 of the following
The field names are
tri_tickbox1
tri_tickbox2
tri_tickbox3
tri_tickbox4
tri_tickbox5
Can anybody help me?
Thank you in advance
Hi @jamestredree ,
You can use general validation (see official example here - https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-custom-javascript#general-validation). There you can get values from all checkboxes and if more than two of them are checked return false to stop submission. To see if checkbox is checked you can use something like in this examples (https://www.geeksforgeeks.org/how-to-check-whether-a-checkbox-is-checked-in-jquery/).