Does someone have an idea on how one would provide a drop down to users that contains collection data, displaying the label using one field, and the value using another field in said collection? Example:
AgencyID = ABCD0001
AgencyName = John Doe Enterprises
The dropdown would display the AgencyName to the end user, but insert the AgencyID, associated with the AgencyName in that row, to the collection.
Thanks Sharon! This is close, but not quite what I’m looking for. Mostly because of this statement at the bottom:
What this tells me is if I’m using an alternate collection to list values from, the label and value will both need to be the same through the UI. I’m currently pulling the value for the drop downs using an array to grab unique values in field AgencyId:
But rather than grabbing the agencyId field as the label and value, I’m looking to pull the Agency.name field associated with the agencyId field and display the name as the label, opposed to the agencyId which is much less informational to the end user.
I feel like I’m close, but I just don’t know enough about Javascripting to get past the hurdle.