• 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: Required dropdown field not validating

Required dropdown field not validating 11 years 10 months ago #24029

  • anthony.burge
  • anthony.burge's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 3
I have a dropdown menu similar to the one below.

|Please select the number of pets you have.
0| You own no pets
1| You own one pet

When I set the validation type to required, I find that if the user selects the option '0| You have no pets'
the field will not validate. Is it possible to have a field validate when the option value is equal to 0 and the field is set to required? If yes, how?

Ps. I've tried using 'A| You own no pets' and that worked, but I had to change the value prior to inserting into the DB. It also makes life a lot harder later when I am trying to autocomplete the fields from the DB. Another thing I tried was to give the option 'Please select the number of pets...' a value, but that didn't help.
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!