How can I use the input in a text field inside the label of a following field ?

  • Profile Image
    data_osome_studio
    Asked on May 02, 2016 at 06:06 AM

    My form has a text field in which the user can type the name of a product.

    Later in the form, I would like to use that typed name inside a field label, to get a precise question, like :

    "How was your experience using <product name> ?"

     

    I made some attempts. With a text field name {myTextField}, I tried to insert {myTextField:text} in the later field label.

    "How was your experience using {myTextField:text} ?"

    But it did not work...

     

    Would there be some way of achieving this ?

    Thanks

  • Profile Image
    Boris
    Answered on May 02, 2016 at 08:37 AM

    You cannot use the value of one field in the label of another field, as this would prevent our system from correctly collecting form responses from such a variable field - our system needs the label of a field to be stable/constant.

    However, you can use the tags inside regular Text fields, where simply using a tag such as {myTextField} would display the value of your field named myTextField. What this means is that you can add a Text field above the question, and present your variable / customized question that way.

    Please take a look at the following demo form:

    https://form.jotform.com/61223072287956

    In the demo above, the tag of the first field is {yourFavorite}, so all we needed to do is use {yourFavorite} in our message on the Text field:

    Please let us know if you need any further assistance, and we'll be happy to help.