How to use variables in a field label

  • Profile Image
    smkralik
    Asked on February 28, 2018 at 02:23 AM

    So, I have a LONG list of employees that have to submit reports, and I want to use JotForm, but...

    I want to autofill the titles of different fields, and not the fields themselves. Moreover, I want a certain number of fields to be generated, each with unique titles, based upon the previous selection(s).

    As a simple example, a user selects 3 names from a list. 3 Large Text Entries appear that each say "Describe ___?" Where ___ will be replaced with the names of those selected.

  • Profile Image
    Steve 
    Answered on February 28, 2018 at 07:40 AM

    I apologize for responding to my own post, but when I went back to search recent posts for my post, it didn't show up, and not a single post on the forum showed up under recent posts that had zero replies. Apparently, only if you have at least one reply will anyone see your post.

  • Profile Image
    aubreybourke
    Answered on February 28, 2018 at 10:28 AM

    Yes its possible to use a variable on a label. For example:

    1519831412wwm0c.png

    Working demo here:

    https://form.jotform.com/80583790025963


    In my demo, you can see I have one short text field. To retrieve its variable name you must open its properties (gear icon) and on the advanced tab scroll down to where it says "Field Details". And you will see its unique name. 

    For example:

    1519831636nt0ef.png

    All you need to do now is insert the unique name in the label. So in my example its:

    Hello {name}


  • Profile Image
    aubreybourke
    Answered on February 28, 2018 at 10:30 AM

    Note that you cannot create new fields dynamically. However, you can create them and show/hide them based on a condition:

    How-to-Show-or-Hide-Fields-Base-on-User-s-Answer