Validation radio button

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 8 months ago #68967 by Roger
Validation radio button was created by Roger
I have a pair of radio buttons where the registrant can choose yes or no, is it possible to set a validation rule, so that he can only continue when he selected yes?
If he selects no is it possible to show a text information?

Thanks

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #68974 by James Riley
Replied by James Riley on topic Validation radio button
You can definitely set it up to show a Message field by setting the Depends On option in the message field to the [Radio field -> "no"] you've mentioned. You'd probably need to write a custom validation routine to check for the "yes" option being checked before allowing form submission (I think it can be done, and with an hour or two to figure it out I could probably do it, but one of the Devs might be able to give you the code in 30 seconds :) ).
You could use a required "yes" checkbox instead and just display the "you must select 'yes' to proceed" message all the time.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc