• Resolved abinternet

    (@abinternet)


    We have a registration form at https://guardian-angels.es/en/single-parent-registration/. Half way down the page you’ll see there’s a checkbox to confirm you are a single parent (“I confirm that I am a single parent looking after my children without a spouse…”. On the PD plugin “Manage Database Fields” settings under “Personal Info Fields” we have that field’s validation set as “Required” with the Values set as: Yes, No

    Checkbox_setting

    However, it’s been pointed out that you can submit the form without ticking that box. We want it to be mandatory. i.e They should not be allowed to submit the form unless that checkbox has been ticked. The validation is working for all other fields which we’ve set as required. Any ideas why the validation is not working for this checkbox?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    For a checkbox like that, you should only define one value, which will be the “checked” value. The reason is that if you have two values, the second value is the “unchecked” value and so the field is validated whether it’s checked or not.

    Thread Starter abinternet

    (@abinternet)

    OK, I have taken out the “No” option and that’s it working correctly now. Thanks again for the prompt and helpful response. Keep up the good work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form validation not working on Checkbox’ is closed to new replies.