What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Password Matching Condition

    Asked by bluebotgraphix on April 08, 2014 at 02:08 PM

    I have a Password field and a Password Verify field on my form. Is there a condition where I can make the Verify field not accept if it doesn't match the first Password field? The verify field must use whatever the vistor enters, not a pre-determined value.

  • Profile Image

    Answered by walledgarden on April 08, 2014 at 02:53 PM

    Hi bluebotgraphix,

    Unfortunately, password field is not an available option here for security reason. If you already have your for created, you can add some javascript to validate the 2 fields. 


    <script type="text/javascript" language="javascript">

    function validatePass() {

    if(document.getElementByID('pass1').value != document.getElementByID('pass2')){

    alert('Password didn't match!');


    return trues;




    insert the above code to the head of your page and call the function by adding onClick="validatePass();" to yur submit button.




  • Profile Image

    Answered by bluebotgraphix on April 08, 2014 at 03:01 PM

    Still new to the site, can you please point me to where the javascript code is to be inserted on the head of the page? Also, where can I add the "onClick" to the submit button?

  • Profile Image

    Answered by walledgarden on April 08, 2014 at 03:06 PM


    Unfortunately, they do not offer these option here for security reasons. Passwords cannot be included on the form.


  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on April 08, 2014 at 05:23 PM

    What Bryan has explained to you is true, we do not allow password fields on forms as this would violate our terms of use.

    Kind regards