Show fields value instead of name of option.

  • Profile Image
    Asked on May 15, 2017 at 05:47 PM

    I have several fields like this, the persos chooses how many box lunch he wishes to add (1 to 5) and each option has a different value considering:

    1 box lunch = 15
    2 box lunch = 30
    3 box lunch = 45
    and so on

    I would like to be able to show either on a Summary at the end of the fiels, or at an email, the option ant the value, for example:

    You have chosen to add 2 box lunch, for a total of $30.00 USD

    Where 2 is the option and "30" is the value

    Is there a way to do this?



  • Profile Image
    Answered on May 15, 2017 at 08:25 PM

    You could not get the option value, but you could follow this workaround. 

    First, add a Form Calculation widget to your form, this will help you to capture the option's value only and still display the option name in the drop down. 

    Add the drop down field and you will then capture the field's value: 

    You will need to get the Form Calculation widget name in order to display its value, this can be then used in a text field. 

    This guide will help you getting the field's name: 

    You can see the result on this form: 

    Hope this helps.