• 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: Validate form fields if checkbox selected

Validate form fields if checkbox selected 12 years 7 months ago #19042

  • mike.r.hermary
  • mike.r.hermary's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
Hello,

I have a basic e-commerce form set up to sell calendars on my client's website. The form contains a variety of inputs for the user to fill out if they are purchasing the calendar for themselves. The form also contains similar inputs for the user to fill out if they are purchasing the calendar as a gift. The recipient form fields are hidden by default and are revealed when the user selects a checkbox.

I am wanting to have those recipient form fields become required if the form is submitted with the checkbox selected and not required if the checkbox is not selected. Can this be done using the on form process PHP script field in RSFormPro? Is the example found here demo.rsjoomla.com/fex similar to what I am looking to achieve?

Any assistance is greatly appreciated.

Mike
The administrator has disabled public write access.

Re: Validate form fields if checkbox selected 12 years 7 months ago #19044

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello ,

You can do this using conditional fields display as explained here:
www.rsjoomla.com/support/documentation/v...ditional-fields.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: Validate form fields if checkbox selected 12 years 7 months ago #19049

  • mike.r.hermary
  • mike.r.hermary's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 1
Hello,

Thank you for pointing me in the right direction. Conditional fields provided the solution I needed.

Mike
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!