cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PatrickCheung
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
eka24
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (61,531)