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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,954)