• 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: Check if one out of two fields is filled in

Check if one out of two fields is filled in 12 years 7 months ago #18932

Hi there my dear rsform-experts,

I'm building a order form, but a user should not be able to submit if he has not ordered a product. There are 2 products and the user needs to order at least one product. This means that I cannot make the 2 fields required. There needs to be some kind of validation that checks of the user has put a vaule for at least one product.

Any thoughts on that ?
Last Edit: 12 years 7 months ago by ronny.van.der.borght.
The administrator has disabled public write access.

Re: Check if one out of two fields is filled in 12 years 7 months ago #18974

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

This can be done, using the $invalid method, as explained here:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: Check if one out of two fields is filled in 12 years 7 months ago #18983

  • matt
  • matt's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 14
Conditional Fields could maybe work for you, and you don't need any scripts
[url=http://http://www.rsjoomla.com/blog/view/171-show-hide-a-field-in-rsform-pro.html]http://www.rsjoomla.com/blog/view/171-show-hide-a-field-in-rsform-pro.html[/url]

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