How to get option 'name' when using calculation values in dropdown?

  • allister.mcnulty
    Asked on November 8, 2021 at 8:31 PM

    Hi, I'm hoping to use calculation values and a conditional rule to include a mapped email address in a form, similar to this example:

    https://www.jotform.com/answers/1126064-how-to-set-value-to-each-item-in-the-dropdown-list

    However, I also need to include the option 'name' (i.e., the actual text in the dropdown) in another field. Is there a way to refer to it?

    Thanks!

  • Sonnyfer JotForm Support
    Replied on November 9, 2021 at 1:41 AM

    Hi there - I'm not sure if I understood you correctly. Did you mean you wish to have two values per selection in the dropdown? If so, you can achieve it by inserting two fields via the condition.

    1636440064 618a1800baa32  Screenshot 10

    1636440080 618a181075d3f  Screenshot 21

    Hope this information helps.

  • allister.mcnulty
    Replied on November 9, 2021 at 1:57 AM

    Hi Sonnyfer,

    So what I'm trying to do is have a dropdown that shows (for example) 'John Smith' with a value of 'john.smith@email.com'... I can currently use the email value in other fields, but how can I obtain 'John Smith'?

    Thanks!

  • Rosa_C
    Replied on November 9, 2021 at 5:19 AM

    Hi there,
    Please note that if you assign a value, you can only obtain the value and not the option itself.
    Don't hesitate to reach out if you have any other question.
    Best.