• 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: Form validation being ignored

Form validation being ignored 4 years 9 months ago #40428

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
I'm using conditional fields on a form and the email address (required), reCaptcha V2 (required) and submit fields are only shown under certain conditions.

However, I can press the submit button without filling in an email address on my form and it submits the data ok (even though the email address is a required field)

Any ideas why this would be please?

I can't share a link as it's on a development site that is closed off to only an internal IP address
The administrator has disabled public write access.

Form validation being ignored 4 years 9 months ago #40429

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
Hidden required fields are reset to default i.e 'not required'
www.rsjoomla.com/support/documentation/r...ditional-fields.html
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.

Form validation being ignored 4 years 9 months ago #40430

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
Ah, ok!

Is there any way to make them maintain their required value?
The administrator has disabled public write access.

Form validation being ignored 4 years 9 months ago #40431

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
Possibly with some custom javascript . Why do you need to hide a required field?
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.

Form validation being ignored 4 years 9 months ago #40433

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
There's a series of questions and if they need to contact us, then they're shown the form.

What Javascript would I need to add to the fields in order to make them required (when in view)?
The administrator has disabled public write access.

Form validation being ignored 4 years 9 months ago #40435

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
Ok, if you set a field as required it defaults to not required when hidden by a condition but will return to being required when shown by that condition.
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.

Form validation being ignored 4 years 8 months ago #40440

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
Ok, thank you. Oddly, this is the case for some fields, but not all of them
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!