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

    How do I identify logged-in users without asking for user details?

    Asked by shefanciedme on July 08, 2012 at 12:08 PM

    This is the case I'm looking at,

    1) User logs into my site

    2) User has to fill up form

     

    I am trying to get user to just input required data without having to enter his/her email address or user name, and yet still identify who sent the form. Is that possible?

  • Profile Image
    JotForm Support

    Answered by liyam on July 08, 2012 at 12:57 PM

    Hello shefanciedme.  There are actually a lot of ways how to do this.  You can checking your website and find what session data is being used (most of the time, it keeps the email address at least or the username) and use this type of approach. But instead of using the website as value, you can use the email address or the username.

    Or you can probably copy the source code of your form and place it on your website. Pre-fill the field by placing the source code of your form with the session data variable as the value of the text field, something like this:

    <input type="text" name="username" value="$_SESSION['username']">

    It would be great if you can share with us some further details about your website so we can assist you better to achieve your goal such as the URL of your webpage,  if the site is using any CMS (what type), and others.

  • Profile Image

    Answered by shefanciedme on July 08, 2012 at 09:12 PM

    hi liyam, thanks for your very prompt response!

    basically, i'm using shopify, so am unsure if your solution fits in with their built in CMS?

  • Profile Image
    JotForm Support

    Answered by Mike_T on July 09, 2012 at 05:38 PM

    For example you can try to use Shopify Liquid template language to pre-populate needed fields.

    Here are the steps you may try:

    1. Open some of your Shopify Liquid Template File.

    2. Embed your form to the template using Form Source Code.

    3. Modify form source code in template, to use Shopify Liquid Customer Variable as a value of your field(s).

    Example, I have a Text Box field called "name" to my form. Here is the code of that field.

    <input type="text" class="form-textbox" id="input_3" name="q3_name" size="20" />

    I have added value="{{ customer.name }}" to that field, in order to pre-populate it with Shopify Customer's name.

    <input type="text" class="form-textbox" id="input_3" name="q3_name" size="20" value="{{ customer.name }}" />

    Note: I am not much familiar with the Shopify, and I do not have a live store to test it. There also might be some better solutions, so I think that Shopify support may help you too.

    If you need any further assistance on this, please let us know. We would be happy to help.

  • Profile Image

    Answered by shefanciedme on July 09, 2012 at 09:25 PM

    Thanks Mike! I'll try that out. Cheers!