• 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: Validate field

Validate field 5 years 3 weeks ago #40058

Hi All,

Is there a way to validate the content of a field and apply restrictions?
E.g. In a text box field, the user can enter a value between 1 and 9, if the chosen number is outside this range, mark as an error.

Thanks in advance!

-Carlos
The administrator has disabled public write access.

Validate field 5 years 2 weeks ago #40073

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
Hello,

RSForm!Pro allow you to create a custom validation rule as explained in the following article:

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

Also, you can achieve this using a PHP script in Scripts called on form process and manipulate the $invalid variable in order to invalidate the field. More on this here:

www.rsjoomla.com/support/documentation/r...ted/php-scripts.html
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.

Validate field 5 years 2 weeks ago #40076

bogdan.tataru wrote:
Hello,

RSForm!Pro allow you to create a custom validation rule as explained in the following article:

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

Also, you can achieve this using a PHP script in Scripts called on form process and manipulate the $invalid variable in order to invalidate the field. More on this here:

www.rsjoomla.com/support/documentation/r...ted/php-scripts.html

The article explains how to invalidate a field via a php script, is it possible in the same script to customize the validation failure message of the field in question?
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!