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

  • Profile Image
    bfackrell
    Asked on May 14, 2022 at 02: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.





  • Profile Image
    Kat
    Answered on May 14, 2022 at 03: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_

    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_

    So now the form will work like so:

    1652557576_62800708ed7a8_fieldpassvalue.

    Is this what you were referring to?

  • Profile Image
    bfackrell
    Answered on May 14, 2022 at 03: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".

  • Profile Image
    Kat
    Answered on May 14, 2022 at 05: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!

  • Profile Image
    Kat
    Answered on May 14, 2022 at 05: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_

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

    1652563506_62801e321d92b_

    Now, the form works like this:

    1652563730_62801f120aba8_passvaluetofiel

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

  • Profile Image
    bfackrell
    Answered on May 14, 2022 at 10:19 PM

    Works perfect. Thank you!