PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

add EAN18 barcode script for validation

  1. Hello,

    I have created a form, but one input field is a field to add an EAN18 barcode field. This barcode has 18 digits, but I also have a script to validate if the barcode is valid. Is there a way to add this script to this specific field?

    Best regards,

    Joeri.

    Posted 7 years ago on Thursday January 31, 2013 | Permalink
  2. What sort of script are you talking about for validating that barcode: JavaScript or PHP script? If it's JavaScript you will need to add it on the front end when the form is displayed.

    If it's PHP, you can use the gform_validation filter to ensure the barcode is in the proper format, and if not, return a validation error: http://www.gravityhelp.com/documentation/page/Gform_validation

    Posted 7 years ago on Thursday January 31, 2013 | Permalink