function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tyler ZikaTyler Zika 

Load input select options.

I'm creating a to do list app that you can assign users to items you create.

The form to create the item is a custom object. The "Assign To" field is of type LookUp(User).

I know when the form loads it needs to load an aura:attribute with the list of users, then interate over ui:inputSelect field with the aura:attribute.

I want to display the Users names, in the ui:inputSelect, but don't I need to use the user's Id for the value, since the "Assign To" field is of type LookUp(User)?

I'm not sure how to display the User names, but assign the User's Id as the value in the custom object, item.

How do I do this? If someone can point me in the right direction I'd appreciate it!