cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Update Form value with selected DisplayName in Combo box

I have created an EditForm with a Combo box using Office365users to get the DisplayName successfully. The intention is to update the email address of the selected DisplayName into another Form field (Text) named "Approver's email". I search through many discussion & try different method but no luck to get the email address resolved in the combo box and store it into the text field in the form .

 

The DisplayName can be selected through "Office365Users.SearchUser({searchTerm:ComboBox4.SearchText})" in ITEMS in the Combo box (Single value), but the missing information is how to get the email address of the selected item... And how to update another Text field (DataCardValue ?).

 

Thanks !

Patrick 

1 ACCEPTED SOLUTION

Accepted Solutions

Oops ! ... Problem is solved by setting the Searchfield of Combo box to "Mail". Thanks !

View solution in original post

5 REPLIES 5
Super User III
Super User III

On the second form that you want display the name, put this in the default of DataCardValue:
OldFormName.LastSubmit.namecolumn
NOTE: editformName is the editform, namecolumn is the column name on the editform which holds datacardvalue for the Displayname

 

If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Hi Eka,

 

Seems getting the DisplayName in the DataCardValue , Default with "ComboBox4.Selected.DisplayName".  Next question is how to get the email address that representing by the DisplayName. 

 

Thanks !

Patrick

Use:

User().Email

 

If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Hi Eka,

 

The User().Email is getting the current user which is myself using the Apps, but not the email address of the Combo box.  And cannot use something like User(ComboBox4.Selected.DisplayName).Email

 

Thanks !

Patrick

Oops ! ... Problem is solved by setting the Searchfield of Combo box to "Mail". Thanks !

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (9,444)