Is there a way to easily create/code a custom field validation in the source code?

  • Profile Image
    neha2010
    Asked on December 01, 2010 at 05:48 PM

    A client is asking if we can create a custom validation for a "coupon" field, that must match the entry exactly - any ideas on if/how this can be done in the source?  

    Thanks in advance as always! - Dajana

  • Profile Image
    aytekin
    Answered on December 02, 2010 at 07:31 AM

    Yes, you can certainly do that using JavaScript. Get the full form source code and add your own javascript validation code into it.

    Here is how you can get full form source code. Open your form on the Form Builder:
    1. Open "Setup & Share" tab on toolbar,
    2. Click on "Share Form"
    3. Click on "Advanced Options"
    4. Click on "Full Source Code".