Pass drop-down field text value to a textbox

  • Profile Image
    tbawa
    Asked on August 02, 2015 at 10:56 AM

    I have two drop lists on my form which are selectively shown based on radio buttons.

    As only one can be active I wanted to have a hidden field that takes the value from the active drop list (to be used in e-mail notifications,, reports, ...)

    Here is how it looks (for testing purposes I have made the hidden field called "Club" visible).

     

    I have defined conditions to do this but the problem is that the calculation widget seems to consider the drop lists a numeric field not a text field and I end up with 0 as club value. Here is one of the conditions:

     

    As can be seen in the screenshot the drop list field is considered numeric not text.

    How can I achieve what I want to do?

    Thanks

  • Profile Image
    Mike_G
    Answered on August 02, 2015 at 01:06 PM

    It is because the value passed to the Club field is set to be numeric and not as a Text. You can set it as a Text if before adding it you check the (Please see image below) "Add field to equation as text by default." from the Show Advanced Options.

    Or you can just click the 0-9 portion from the tiles to change it to A-Z.

    Try it on the cloned form I have used for testing. http://form.jotformpro.com/form/52134728961964

    I hope this helps. Let us know if you nee any further assistance. Thank you.

     

  • Profile Image
    tbawa
    Answered on August 02, 2015 at 08:42 PM

    Thank you so much - never occurred to me to just click on the field name in the calculation editor to toggle between "Text" and "Numeric".

  • Profile Image
    ashwin_d
    Answered on August 03, 2015 at 02:04 AM

    Hello tbawa,

    On behalf of my colleague, you are welcome.

    Do get back to us if you have any questions.

    Thank you!