05
Days
23
Hours
59
Minutes
59
Seconds


Adding Custom Validation Message for Fields

In RSForm!Pro, you can dynamically customize validation messages for specific form fields using the 'Script Called on Form Process' area. This allows for more dynamic and personalized error messaging.


The script you can use looks similar to this:

// Define the field name for which you want to customize the validation message
$myFieldName = 'Email';

// Fetch the properties of the field using RSFormProHelper
$props =& RSFormProHelper::getComponentProperties(RSFormProHelper::getComponentId($myFieldName));

// Update the validation message property with your custom message
$props['VALIDATIONMESSAGE'] = 'New message here';

Was this article helpful?

Yes No
Sorry about that