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

    Can a form access environment variables?

    Asked by bradroberson on September 15, 2015 at 06:43 AM

    I would like to reference the login ID of the user to identify who is completing a survey.  This is to work around the IP address being identical for every machine on a company subnet. 

     

    Any my ideas how to access userid or otherwise determine who is completing survey without asking for input?

     

    Thanks again for an awesome tool!

    Brad

    variables form access a survey thanks tool identical
  • Profile Image

    Answered by Sammy on September 15, 2015 at 11:03 AM

    Hello Brad,

    Unfortunately it is not possible for a form to access environment variables for a particular machine.

    A potential workaround is to embed you form in a webpage that will require user login after which the user id is set in the browser's session.

    You can then pass this session in as a parameter value in the form URL, the value can then be placed in a hidden field on the form e.g.

    http://form.myjotform.com/form/52567219041554?userid=mas

    where userid is the name of a field in the form where the value will be filled.

    Please check out this guide about prepopulating form fields with URL parameters