How to add a hidden value to a dropdown?

  • rintie
    Asked on August 8, 2014 at 6:32 AM

    This question has been asked before but didn't provide the correct awnser so I had to ask it again. I'm building a form to calculate a price (just calculation no payments). I wanted to add a dropdown menu to select what kind of package they want. Example: basic is $10 and pro is $50. But if I'm making a form like that I have to add the value to the options and it will look like this:

    Select your package
    o Basic 10
    o Pro 50

    The prices should now be visible. It should look like this

    Select your package
    o Basic
    o Pro

    So how can I add a value to a dropdown or radiobox for a calculation without displaying it?

  • omer Jotform Support
    Replied on August 8, 2014 at 7:58 AM

    Hi rintle,

    Unfortunately, this is almost impossible. However, you can use radio buttons for your task.

    If you need any further assistance, please let us know.

    Have a good time.

  • rintie
    Replied on August 8, 2014 at 8:20 AM

    Too bad. Isn't it possible in any way, maybe hide the text in the code by making the number part white (same as bg) or to set display to hidden?

  • omer Jotform Support
    Replied on August 8, 2014 at 8:30 AM

    Hi,

    This is not related to JotForm, capability of styling dropdown menu values in CSS is too limited.

    If there is another topic that I can help you, please let me.

  • rintie
    Replied on August 8, 2014 at 8:40 AM

    I see. Thank you for your insane fast help.
    Have a good one.

  • David JotForm Support
    Replied on August 8, 2014 at 11:29 AM

    hi,

    You actually can add a customer calculation value to a dropdown without displaying it.  Click on the field you wish to change the calculation value of and then click on the little gear to open up the settings.  From there you can assign a value to each option in the dropdown:

    How to add a hidden value to a dropdown? Image 1 Screenshot 20

    These will not be shown in the form but you can use them to pass values to a custom calculation field:

    http://www.jotform.com/blog/97-Introducing-Field-Calculations-for-Forms

    Please let us know if you have any further questions and we will be happy to help.

    Thank you for using JotForm!