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

  • Profile Image
    allister.mcnulty
    Asked on November 08, 2021 at 08: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!

  • Profile Image
    Sonnyfer
    Answered on November 09, 2021 at 01: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_

    1636440080_618a181075d3f_

    Hope this information helps.

  • Profile Image
    allister.mcnulty
    Answered on November 09, 2021 at 01: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!

  • Profile Image
    Rosa_C
    Answered on November 09, 2021 at 05: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.