Can you have validation when adding the source code of a form on a website?

  • Dan Roberts
    Asked on February 15, 2021 at 8:49 AM

    Hi - I've tried adding the source code instead of embedding an iframe and the validation doesn't show like it does with the iframe. Is it possible to get the same validation (red error states and messages instead of default browser message) when adding the source code?

    Many thanks,

    Dan

  • Sam_G
    Replied on February 15, 2021 at 9:10 AM

    Hi Dan,

    There could be some JS conflict when using the source code.

    Kindly try embedding your website with this Iframe code:

    To embed your form kindly follow the guide: https://www.jotform.com/help/148-Getting-the-Form-iFrame-Code

  • Dan Roberts
    Replied on February 15, 2021 at 9:14 AM

    Hi - thanks for the quick reply. It works fine when embedding but I need to style the form to be more on brand with the rest of the site. Is there an option to style what's outputted in the iframe?

  • Nikola JotForm Support
    Replied on February 15, 2021 at 10:19 AM

    Hi Dan,

    You can style the form in Advanced Designer or with CSS.

    Related Guides:

    Form Designer Tutorial: Let's create fantastic forms!

    Customize Your Form Using Custom CSS Codes

  • Stakrak
    Replied on February 18, 2021 at 10:12 AM

    Thanks! I've noticed you can pick Google fonts, any chance of getting Montserrat added?
  • Nikola JotForm Support
    Replied on February 18, 2021 at 11:20 AM

    @Stakrak

    I moved your question to a new thread: https://www.jotform.com/answers/2907817