Pass variable in the field label

  • brianf800
    Asked on October 24, 2019 at 4:27 PM

    I need to pass in someones first name, which I know I can do using variables in the URL. How can I then use one of those variables in the label for a question? as an example, I pass in the first name of someone and I want the question to say "[first name], how likely are you to recommend us to your friend?

  • Elton Support Team Lead
    Replied on October 24, 2019 at 6:04 PM

    You can add the variable directly to the label.

    Example: If the full name variable is {name}, to get the first name use {name:first}

    Pass variable in the field label Image 1 Screenshot 30

    Result:

    Pass variable in the field label Image 2 Screenshot 41

  • brianf800
    Replied on October 25, 2019 at 10:35 AM

    Yes, how do I actually set it up so it says Hi John?

  • Kevin Support Team Lead
    Replied on October 25, 2019 at 11:24 AM

    You need to use the field name, this guide will help you finding it: https://www.jotform.com/help/146-How-to-Find-Field-IDs-and-Names 

    Once you have the field name, you can add it to the field label where you want to include the value.