Can I protect a form with username and password?

  • EDSBAU
    Asked on September 12, 2016 at 3:19 PM

    Requiero que el formulario sea diligenciado solo a las personas que previamente les brinde un usuario y contraseña de acceso. es posible? Gracias

  • Kevin Support Team Lead
    Replied on September 12, 2016 at 6:06 PM

    It is not possible to protect a form that way, also it is not possible to use username and password fields in your form as this goes against our terms and your forms and account will be suspended because of that. 

    But there is a way to do it without going against our terms, you may use for a hidden field and pre-populate it via the URL, then show all the content in your form only if the hidden field is filled, here are the steps to do it. 

    First, add a Text Box field to your form and set it as hidden: 

    Can I protect a form with username and password?  Image 1 Screenshot 30

    Once you have done this, add the needed fields to your form and add a condition, if the hidden field is equal to any value that you decide, then show all the content in your form: 

    Can I protect a form with username and password?  Image 2 Screenshot 41

    On this guide you will find more details about hide/show fields based on other fields values: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Then, you will need to pre-fill the hidden field with the value you have specified in your condition to show the fields, so the link that you will share should look like this: 

    https://form.jotform.com/62556683345969?hiddenTextbox=true

    As you notice the hidden field is being filled via the URL, the link to the form without that variable filled will not show the fields in the form, if you open the link above you will get the form as normal, but if you open the next link you will not get the fields. 

    https://form.jotform.com/62556683345969 

    Here is also a guide that will help you to pre-fill form fields via the URL: Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters

    If you have any question, please let us know.