• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Alert message radio button is selected [SOLVED]

Alert message radio button is selected [SOLVED] 4 years 9 months ago #40367

  • admon
  • admon's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi!
I want to display an alert message (in pop up like "Are you sure?") when "No" option in radio button is selected. If the user choose "Yes", the alert message doesn't display.

You can create a radio group and this in items:

<input type="radio" name="radio">YES</input>
<input type="radio" name="radio" onClick="return confirm('YOUR MESSAGE HERE'); return false;"><a href="#" onClick="return confirm('YOUR MESSAGE HERE TOO'); return false;">NO</a></input>


With this code, if the user clicks directly the radio button, the alert mesagge appears. And, if the user clicks on the word, the alert appears too.

Thank you!
Last Edit: 4 years 9 months ago by admon. Reason: Solved
The administrator has disabled public write access.

Alert message radio button is selected [SOLVED] 4 years 9 months ago #40394

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

For this you could try using a Javascript or jQuery script that will trigger the confirmation/alert message only when the "No" option is selected. You can find various examples on how to include custom scripts through the CSS and Javascript section of your form configuration in our online documentation:
www.rsjoomla.com/support/documentation/r...ustom-scripting.html
www.rsjoomla.com/support/documentation/r...zing-rsform-pro.html
www.rsjoomla.com/support/documentation/r...asked-questions.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!