How to Install in Unbounce
Click Here for Instructions
WARNING: YOU ARE ENTERING DEVELOPER TERRITORY
The ‘field’ variable at the top should be changed to the field ID that you would like to perform validation on
The ‘message’ variable should be changed to the validation error message that you would like to show
The ‘valid’ variable later on in the script should be changed to an expression that evaluates to true or false based on whether the user’s input passes validation or not
If you need to add more than one custom validation rule per form, you can duplicate the entire script. Just be sure to change the ‘ruleID’ to something else you’ll need to ensure that multiple rules don’t have the same ID.
Here are some examples of validations that this template can be used to create:
Want to take your Unbounce landing pages + Convertables™ to the next level?
Check out the Ultimate List of Unbounce Tips, Scripts & Hacks