Skip to content

Instantly share code, notes, and snippets.

@johnnyopao
Created April 1, 2015 21:29
Show Gist options
  • Save johnnyopao/5158c3530f0098838aa0 to your computer and use it in GitHub Desktop.
Save johnnyopao/5158c3530f0098838aa0 to your computer and use it in GitHub Desktop.
Add numbers/digits only validation to a Unbounce form field
<script>
window.module.lp.form.data.validationRules['field_name'].digits = true;
</script>

Replace 'field_name' with the ID of your form field you want to add this validation to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment