• 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: Validation on hidden fields

Validation on hidden fields 12 years 2 months ago #21803

How do I go about changing the validation on hidden form elements. For ex. I have a drop down with 10 different options. If they selection option 1, it shows an extra form element that is now required since they selected option 1. If they select option 2, the extra form element from option 1 is hidden and therefore not required anymore. Is this possible?
The administrator has disabled public write access.

Validation on hidden fields 12 years 2 months ago #21897

  • mail310
  • mail310's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Oh yeah.... a solution would be so nice. Searching for the same problem.

Right now i used a javascript based solution. If the field is hidden, the value of the hidden input field is "0" and if it is shown the value is "". So if you set the required flag the user have to fill the input field if it is shown :-) cause its empty then.

The only problem is, that you got allways a "0" in the hidden input field on subm., but you can egnore it by yourself as you know where it comes from :-)
The administrator has disabled public write access.

Validation on hidden fields 12 years 2 months ago #21908

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

There is no need for custom scripting in order to achieve this. RSForm!Pro uses conditional fields feature that does this for you.

If you hide a field through conditioning, even if the field is required, as long as the field remains hidden the form will submit regardless.

More information on this can be found in the following article:

www.rsjoomla.com/blog/view/171-show-hide...d-in-rsform-pro.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Validation on hidden fields 12 years 2 months ago #21918

  • mail310
  • mail310's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Ahhhh :-) Nice... this is great. Bad for me, so i have to change my js script and the whole form but its a perfect solution. Nice work. Thx for this feature
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!