I’m pulling a list of ‘contacts’ from an API and displayed dynamically in a dropdown. I want my users to see the ‘Contacts Name’ but i would like to save the ‘Contacts ID’ in the DB.
When I go to save in DB all I can do is save ‘Value’ from dropdown which = Contacts Name. How can I fix this or solve it?
Instead of display the names directly in a dropdown, create a repeating group with the data. Make it invisible. Use this repeating group as the source of your dropdown’s values.
So when you wish to save the name, it will be easy to locate the ID as well (or any other field)…
So the Repeating Group idea worked. But what is happening now is that my API is saving all the Customer ID’s as a list. I don’t actually want this I only want the corresponding ID that the User has selected from their drop down. Any ideas?