- Posts: 158
- Thank you received: 2
Validation radio button
- Roger
- Topic Author
- Offline
- Premium Member
-
Less
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
If he selects no is it possible to show a text information?
Thanks
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
9 years 8 months ago #68974
by James Riley
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 :.
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.

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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.