• 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: Ajax validation for fields not working

Ajax validation for fields not working 12 years 2 weeks ago #22710

  • scott44
  • scott44's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Ajax validation for fields isn't working. I've enabled the checkbox but validation doesn't occur until after the submit button is pressed. What must I do to have it work as expected? Also, how can I catch various exceptions such as null/blank field, data in wrong format, size too long or short, etc.?
The administrator has disabled public write access.

Ajax validation for fields not working 12 years 2 weeks ago #22717

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

By using the AJAX validation feature, your form will be validated without refreshing the page when you press the submit button and not after you had completed a field.

Validation rules are indeed available for you to choose from, they are explained here:

www.rsjoomla.com/support/documentation/v...e/57-components.html

If they do not suit your needs, you can try creating your own custom ones:

www.rsjoomla.com/support/documentation/v...alidation-rules.html

Can you add a working URL of your form so I can have a look?
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Ajax validation for fields not working 12 years 2 weeks ago #22732

  • scott44
  • scott44's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thank you for your reply.

Is there a way to have a field validated when it loses focus and not when the submit button is pressed? It would be best if a validation error is caught when the user is finished filling in the field.

I took a look at the validation.php file. It will allow me to create a custom validation rule but I don't think it will address my concern.

How can I:

1) Check for Null/blank field. Report a custom error if caught. If no error, go to step #2.

2) Check for invalid data. Report a custom error if caught. If no error, go to step #3. etc. etc.

I understand that I can do multiple checks in a single routine and report pass or fail. But, I can't report to the user why a validation error occurred. That is, it failed because the field is blank or it failed because the data is invalid. Is there a way to do this?

Unfortunately I can't provide you with a URL at this time as I'm currently working on the form.

Thanks!
Last Edit: 12 years 2 weeks ago by scott44.
The administrator has disabled public write access.

Ajax validation for fields not working 10 years 7 months ago #28714

is there any solution on this?
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!