Can I populate the title of a Long Text field with input from the Short Text field?

  • bfackrell
    Asked on May 14, 2022 at 2:17 PM

    I have a Short Text element and a Long Text element. Is it possible to copy the user input from the Short Text element to the 'Question Text' field of the Long Text element?

    I want the user's input to be the title of the Long Text element.





  • Kat JotForm Support
    Replied on May 14, 2022 at 3:47 PM

    Hi Bradly,

    Thanks for using Jotform.

    Yes, you can certainly pass the inputted value from your Short Text field into your Long Text field using form Conditional Logic. I've created a simple example form to show how this can be done: https://form.jotform.com/221336313377048

    First, we'll click on the SETTINGS tab in the top menu of your form builder, then the CONDITIONS tab, and we'll select the UPDATE/CALCULATE FIELD condition:

    1652557379 62800643d73fc  Screenshot 10

    Next, we'll set the following condition to pass the user-input value from the Short Text field to the Long Text field:

    1652557447 62800687bc8c6  Screenshot 21

    So now the form will work like so:

    1652557576 62800708ed7a8 fieldpassvalue Screenshot 32

    Is this what you were referring to?

  • bfackrell
    Replied on May 14, 2022 at 3:54 PM

    Not quite. In your example, what I'd like is for the user input from the short text field to become the heading in the long text field. So, if I type "This is a test" into the short text user input field, the heading "Long Text" (in your example) would now read "This is a test".

  • Kat JotForm Support
    Replied on May 14, 2022 at 5:07 PM

    Hello again Bradly,

    Thank you for elaborating more: this helped to clear things up!

    Please allow me a little time to see if this is possible, and I will get back to you via this thread as soon as possible.

    Your patience and understanding is appreciated in advance!

  • Kat JotForm Support
    Replied on May 14, 2022 at 5:29 PM

    Hello Bradly,

    Thank you again for your patience as I looked into this for you!

    In the same test form, I was able to make this work using the Unique Name of the Short Text field and passing that value into the title of the Long Text field.

    So, the Unique Name of the Short Text field in my example form is {shortText} - please note that you'll need to copy this exactly into the title of the Long Text field for this to work. This can be found in the field Properties under the ADVANCED tab and under the Field Details dropdown:

    1652563393 62801dc12ebc6  Screenshot 10

    Then, in the Question Text in the Long Text field, enter in the Unique ID of the Short Text field:

    1652563506 62801e321d92b  Screenshot 21

    Now, the form works like this:

    1652563730 62801f120aba8 passvaluetofiel Screenshot 32

    Could you kindly try this and let us know how it goes?

  • bfackrell
    Replied on May 14, 2022 at 10:19 PM

    Works perfect. Thank you!