Can a form access environment variables?

  • Profile Image
    bradroberson
    Asked 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

  • Profile Image
    Sammy
    Answered 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