simple regex on checkbox?

prophoto

Active Member
I am trying to hide a group based on a checkbox. The values are 1, 2, 3, 4. If 1 or 4 are checked, then I'd like to show the group #15. If neither 1 or 4 are checked then I'd like group #15 to be hidden. When I setup individual rules it does not work properly. I tried some regex but can't get that to work either. Thank you.
 
Last edited:
Cwd site, form #1, element #96. Form showing on homepage. Temporarily removed option #4 since this is a live site.
 
(The problem was that a checkbox's value is an array, which was blowing up the regex test, trying to do this.get('value').test(/.../) on an array. Needed to make sure the value is a string ... this.get('value').toString().test(/.../). Which will not change string values, but convert arrays into comma separated strings.)

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top