Add custom validation rules

  • Profile Image
    Asked on February 15, 2021 at 06:24 AM


    is it possible to create custom validation rules?

    Preferably via JS (I will host the source code).

    Would be happy if there is a method where i can toggle the validated state.

    found how to trigger an error (JotForm.errored(input, message), but the form validity was not updated

  • Profile Image
    Answered on February 15, 2021 at 07:34 AM

    Hello there,

    I suggest you to download your form's full source code. Then, you can add your custom validation rules via JS.

    Guide: How-to-get-the-full-source-code-of-your-form

    Should you have any other concerns, kindly let us know.

    Thank you.

  • Profile Image
    Answered on February 15, 2021 at 07:47 AM


    how can i hook the validation rules to the form?

    i.e, prevent the submission event when invalid. Trigger the validtion check when submit button is clicked...

  • Profile Image
    Answered on February 15, 2021 at 08:19 AM


    As my colleague suggested, the only way to insert your own custom JS validation into the form is by downloading the form source code. This way, you can freely modify the form source code and insert your own.

    Modification and customization of form source code are beyond our support scope. This workaround is quite tricky, so I would suggest you look for a web developer that can help you with your requirements.

    We do have verification widgets that you might want to use. Please check this link. Here's a guide on How-to-Add-a-Widget-to-Your-Form.

    If there are specific features you're looking for, we can submit that as a feature request but note that requests have priorities depending on the no. of users requesting them.

    Let us know if you have further questions.

  • Profile Image
    Answered on February 15, 2021 at 08:29 AM


    I am the web developer...

    Do you have any developer documentation on how i would hook my functions to the form object created with jotforms{Jotform}?

    Is it possible to create our own widgets?

  • Profile Image
    Answered on February 15, 2021 at 08:53 AM


    Please find all the developer's documentation we have on the following pages.


    Node specific:

    Hope this helps.

    Do not hesitate to reach out again should you have any further inquiries.

  • Profile Image
    Answered on February 15, 2021 at 09:00 AM


    those are great for interacting with your backend.

    hoped to find some documentation for the actual form object