cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TroGun18
Level: Powered On

New field to populate based on choice in dropdown

Hi,

I'm trying to populate an email-address in a field based on choice from a drop-down.

I have inserted a text input field below the drop-down field.

 

For example... If Dropdown Choice "1" is chosen I need to populate "User1@email.com",  If Dropdown Choice "2" is chosen I need to populate "User2@email.com" etc in the text input field.

 

Does anyone know how to do this?

 

Much appreciated 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
TroGun18
Level: Powered On

Re: New field to populate based on choice in dropdown

Thanks @RezaDorrani 

 

I managed to figure it out :). I had to hardcode this into the APP.

 

If(DataCardValue30.Selected.Value = "Corporate", "User1@Gmail.com", DataCardValue30.Selected.Value = "Joint Venture", "User2@Gmail.com", DataCardValue30.Selected.Value = "Allocations/D-WBS", "User3@Gmail.com", DataCardValue30.Selected.Value = "Project", "User4@Gmail.com", DataCardValue30.Selected.Value = "New License", "User5@Gmail.com", DataCardValue30.Selected.Value = "Other", "User6@Gmail.com")

 

Regards,

Trond

 

Regards,

Trond

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: New field to populate based on choice in dropdown

Hi @TroGun18 

 

Is this coming from some data source or you need to hardcode this in the App?

 

You need to have some relationship between the dropdown and the email field stored somewhere

 

Lets say u have a SP list called DataList

Title       Email

1          user1@gmail.com

2          user2@gmail.com

 

Then for the dropdown control Items you can use DataList and set the Value property of dropdown to Title

 

Then for text input field you can set text property to

dropdown.Selected.Email

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

 

TroGun18
Level: Powered On

Re: New field to populate based on choice in dropdown

Thanks @RezaDorrani 

 

I managed to figure it out :). I had to hardcode this into the APP.

 

If(DataCardValue30.Selected.Value = "Corporate", "User1@Gmail.com", DataCardValue30.Selected.Value = "Joint Venture", "User2@Gmail.com", DataCardValue30.Selected.Value = "Allocations/D-WBS", "User3@Gmail.com", DataCardValue30.Selected.Value = "Project", "User4@Gmail.com", DataCardValue30.Selected.Value = "New License", "User5@Gmail.com", DataCardValue30.Selected.Value = "Other", "User6@Gmail.com")

 

Regards,

Trond

 

Regards,

Trond

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,897)