How can I show the option that the user entered in multiple choice field?

  • Profile Image
    WesselingDigital
    Asked on March 19, 2018 at 04:54 PM

    1521492689Screen Shot 2018-03-19 at 9.49

    This is the Dropdown which I am currently using and I added a moderate value for each of the options. When I use the field value (In my case {bistDu}) it will show me only the monetary value. Which ending do I need to attach to the field control in order to show what the user entered?

    In this case, I would like to show:
    {bistDu} = 60 EUR
    {bistDu:??} = Student

  • Profile Image
    Kevin_G
    Answered on March 19, 2018 at 07:00 PM

    I have been testing and it's not possible to separate the data in text and value, you will need to implement a workaround for this. 

    I found a workaround that may work for you and it would require just some adjustments to your form: 

    1. Clone the field and turn off calculation values on the cloned field: 

    1521500243screenshot_01.png

    2. Set the field where calculation values are enabled as hidden: 

    1521500263screenshot_02.png

    3. Copy the value from the field without calculation values to the one with calculations, this guide will provide you more details about it: https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field 

    This way you will have two separated fields to get the selected text and value. 

    I hope this helps. 

  • Profile Image
    WesselingDigital
    Answered on March 20, 2018 at 03:26 PM

    Hi :)

    Thanks for the quick reply :) 

    I gave it a shoot and it is somehow not passing the data...perhaps its a conditionalproblem :/ Could you perhaps have a look at it?

  • Profile Image
    Kevin_G
    Answered on March 20, 2018 at 03:36 PM

    Yes, this does not work since you need to copy the value from the field without calculations to the field with calculation values. Also, since you will have two fields you will have to use both names: 

    - Field with calculations to obtain the value of the selected option. 

    - Field without calculation values to obtain the text. 

    Please try doing this change and let us know how it goes. 

  • Profile Image
    WesselingDigital
    Answered on March 23, 2018 at 11:45 AM

    Still not working :( If I do it this way, I cannot enter a value in first form question.

    Can you please take another look at this case?


    Thank you!

  • Profile Image
    Kevin_G
    Answered on March 23, 2018 at 01:02 PM

    I already made the needed changes to your form and it works now, this is how the values have been configured, the hidden field has the calculation values: 

    1521824513screenshot_01.png

    This is how it works: 

    1521824532screenshot_02.png

    You can use {bistDu} for text and {bistDu19} for value. 

    I hope this helps.