Multi-line question: how can the value of specific field be inserted to other's question title?

  • Profile Image
    jakesch
    Asked on February 26, 2018 at 12:27 PM

    Cant figure this out. The field I want to pull from is :


    <input type="text" id="input_12_field_2" name="q12_garment1[field_2]"


    And I am trying to take the vaule of that answer to add into the next question like: 


    Size Breakdown of {garment1:field_2}

    This is working but instead pulling every field into the title instead of that individual one i want. I have tried multiple other options as well such as [field_2] which fails and just {input_12_field_2} which also fails.


    Any idea?

  • Profile Image
    david
    Answered on February 26, 2018 at 01:48 PM

    I am not 100% sure what specifically you are trying to accomplish.  Field ID's are not variable so if you are trying to change a field label based on the selection made in a previous field, this would not be possible without modifying the source code of the form.

    If you are trying to pass a value from one field to another, that would be done conditionally:

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic

    If there is something else you are trying to do, let us know a bit more details and we will see what we can do.

  • Profile Image
    jakesch
    Answered on February 26, 2018 at 03:39 PM

    On my form currently i want to do the following:


    Q1.  What is your garment?

    Box1: GarmentModel#  Box2: GarmentBrand

    Box3:GarmentSupplier Box4:GarmentWebsite


    Q2. Size Breakdown of {GarmentBrand} {GarmentModel#}

    Box1: Small

    Box2:Small


    Q3. Where do you want {GarmentBrand} {GarmentModel#} to ship to?

    etc, etc, etc



    However, when I do this it gives me the results of the all the fields and not just the two fields I want. It ends up like "Size breakdown of Hanes 5280 Target www.target.com" and i want just "Size breakdown of Hanes 5280" 


    Thanks!

  • Profile Image
    Victoria_K
    Answered on February 26, 2018 at 05:37 PM

    Unfortunately, I was able to replicate the issue you reported. 

    The value of multi-line question's specific field can not be populated to other question's title at the moment. The entire value of multi-line question is the output in that case. 

    We will escalate this thread to our developers so they could check the issue closer. 

     

    I do apologize for any inconvenience caused, we'll keep you posted with updates here.

  • Profile Image
    burak
    Answered on February 27, 2018 at 03:53 PM

    Hello,

    Sorry for the inconvenience.

    This issue is fixed now. You can use a multiline question field for title calculation as {garment1:field_2}. Please feel free to ask anything goes unexpected.

    Thanks for reporting.

  • Profile Image
    jakesch
    Answered on February 27, 2018 at 03:56 PM

    Thank you so much!!!!