Skip to content

Instantly share code, notes, and snippets.

@noahub
Forked from johnnyopao/addDigitValidation.md
Last active April 20, 2021 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noahub/6a29fa902f52b4f2ff07 to your computer and use it in GitHub Desktop.
Save noahub/6a29fa902f52b4f2ff07 to your computer and use it in GitHub Desktop.
<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