• 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: $invalid[] It does not work for me

$invalid[] It does not work for me 8 years 9 months ago #35509

I have the com_rsform-v1.51.14

I want to see how the variable $invalid[] works. To do this I make the following example:

I have a input text. If the user types "0", the input text should display the message improper validation. To do this, I put the following code in "Scripts called on form process":

if($_POST == '0') {
$invalid[] = RSFormProHelper::getComponentId("my_input_text");
}

Then, I go to the form and I click to submit. Result: nothing. Everything works as if my PHP lines are never read.
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!