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 can I use the input in a text field inside the label of a following field ?

    Asked by data_osome_studio 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

    text field label in how
  • Profile Image
    JotForm Support

    Answered by Boris 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.