• 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 not working even on pure Protostar

Ajax validation not working even on pure Protostar 5 years 2 months ago #38793

I use your plugin for many years and it's great :)

I discovered recently on 2 different sites that Ajax Validation is not working. Even when testing on pure protostar. I get a console error:
Failed to load resource: the server responded with a status of 404 (Not Found) 404 component/rsform/?task=ajaxValidate

What can be the cause?

The URL
component/rsform/?task=ajaxValidate
also gives 404.
The administrator has disabled public write access.

Ajax validation not working even on pure Protostar 4 years 7 months ago #39413

  • hans2103
  • hans2103's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 6
I just encountered the same issue with a multi page form
Tested on Protostar too and got the same error.

?task=ajaxValidate 404

Joomla 3.9.11
RSForm 2.2.6
The administrator has disabled public write access.

Ajax validation not working even on pure Protostar 4 years 7 months ago #39415

A simple hint that helped me:
You'll have to rename the "htaccess.txt" file to ".htaccess" if you want to keep "Use URL Rewriting" to "Yes" (from System > Global Configuration > SEO Settings), otherwise switch it to "No".
Further info from the Joomla! docs: docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs
The administrator has disabled public write access.

Ajax validation not working even on pure Protostar 4 years 6 months ago #39529

  • hans2103
  • hans2103's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 6
We have solved the issue by adding a script preventing form validation on Ajax validation
Goto the form and > Form Properties > Scripts > PHP Scripts > Script called on form process
use Joomla\CMS\Factory;
 
// Do not run on form validation
if (Factory::getApplication()->input->get('task', '') === 'ajaxValidate') {
    return;
}
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!