ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Validation Rule AJAX

grantdigital 27 Jun, 2018
HI
On a form we want to be able to have a field that a user is required to enter a tag number they have. We want to validate they have a valid code and also populate some other details based on data stored against their tag.

Is there any way I can do all this via AJAX as my test did not work as validation is check before the AJAX returns and I prefer to do this via AJAX instead of submitting the form. Currently I have a variable set that that the AJAX updates to se it to be valid or not. I would like to know is there a better way of doing this?
GreyHead 27 Jun, 2018
Hi grantdigital,

I would do this with a multi-page form and have just the tag number check on the first page, then you can use an Event Switcher on submit to check the tag and either show a message or preload and display the test of the form.

Bob
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com