How to prevent users from accessing form with its direct URL?

  • Profile Image
    iBurst
    Asked on September 07, 2017 at 06:35 AM

    Hi

    How can I ensure that a form is only displayed on my website (i.e. it cannot be accessed by direct URL) and submissions cannot be viewed on the internet and only on successful log in to Jotform?

    Thanks

  • Profile Image
    ashwin_d
    Answered on September 07, 2017 at 08:35 AM

    How can I ensure that a form is only displayed on my website (i.e. it cannot be accessed by direct URL)

    Please note that there is no inbuilt feature to prevent users form accessing form with its direct URL but with a little workaround it is possible to achieve your requirement. Here are the steps you need to follow:

    #1. Please add "Get Form Page URL" widget in your form for which you want to disable access through direct URL.

    #2. Add "Section Collapse" field in your form as the first field after the above widget.

    #3. Add a "Text" field in form and add the desired text which you want to display users that this form can't be accessed through its direct URL.

    #4. Add condition in your form to check if the value of get form page URL widget contains "form ID value". If it contains form id value then hide the section collapse field and show the text field. 

    Please check the following demo form I created for your which cannot be accessed with its direct URL:  https://form.jotformpro.com/72493430303954

    The same form I embedded it in another form and it will be visible to users: https://form.jotformpro.com/72493029503960

    Feel free to clone these forms for a closer look and see if this is what you wanted to achieve:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.

    Do try it out and get back to us if you have any questions.

  • Profile Image
    ashwin_d
    Answered on September 07, 2017 at 08:44 AM

    Please accept my apology, I missed to answer the second part of your question "submissions cannot be viewed on the internet and only on successful log in to Jotform?"

    Please note that the submissions data cannot be displayed unless you have logged in to your JotForm account and go to your form's submission page. It is not possible to view the form's submission page without login to your account unless you have shared your form's submission page with others.