• 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: Interrupt form submit when return false

Interrupt form submit when return false 10 years 6 months ago #29053

  • yolknet
  • yolknet's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
Before submitting a form I have a Php script that checks a value in the database. If this value is found, the form can continue submitting. If not, an error has to be displayed and submitting should stop.
Is this possible?
The administrator has disabled public write access.

Interrupt form submit when return false 10 years 6 months ago #29054

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Sure, it can be easily achieved using the $invalid variable as in the following example:
if($_POST['form']['Options'] == 'Not in the list')
  $invalid[] = RSFormProHelper::getComponentId("Options");

More information here:
http://www.rsjoomla.com/support/documentation/view-article/602-php-scripts.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: yolknet
  • 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!