cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anthonys123
Helper III
Helper III

Populate a text field with same values selected with OnChange from an external source ComboBox

My combo box (ProjectName) values are coming from an external SharePoint list ('Projects'.'Project Name'). When I select an item, I want a text field (SUBMIT_ProjectName) to reflect the selected item. 

 

I thought ProjectName.text would work but it's not. I'm now looking at OnChange for ProjectName to set the value in SUBMIT_ProjectName. Am I on the right track? 

 

There's more. Ultimately, I'll use (SUBMIT_ProjectName.text&" Service Request") to update the Title column in the SharePoint list. I want to have a display at the bottom of this form to show the user what's getting submitted. 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@anthonys123 

Not the right track!  Avoid the On.... actions of controls unless you really mean to use them behaviorally.  

Your Combobox will already have the values you want in it.  But you need to specify this in the Items property.

If you are using 'Projects'.'Project Name', then you will have a table of records with a Project Name column.

 

So, if you reference your combobox with yourCombobox.Selected.'Project Name' then you will have the value you want.

 

You cannot set a control property in PowerApps by direct statements.  PowerApps is not a development platform, it is modeled around Excel and thus everything is by reference.  

So for your SUBMIT_ProjectName (whatever that is), it needs to derive its value by reference - again:  yourCombobox.Selected.'Project Name'

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@anthonys123 

Not the right track!  Avoid the On.... actions of controls unless you really mean to use them behaviorally.  

Your Combobox will already have the values you want in it.  But you need to specify this in the Items property.

If you are using 'Projects'.'Project Name', then you will have a table of records with a Project Name column.

 

So, if you reference your combobox with yourCombobox.Selected.'Project Name' then you will have the value you want.

 

You cannot set a control property in PowerApps by direct statements.  PowerApps is not a development platform, it is modeled around Excel and thus everything is by reference.  

So for your SUBMIT_ProjectName (whatever that is), it needs to derive its value by reference - again:  yourCombobox.Selected.'Project Name'

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,167)