Hi,
Here's my scenario. I am building a form in PowerApps. This form is based in Microsoft SharePoint.
The way the form works is that the form has a drop-down list. This drop-down list is a look-up to another SharePoint list.
When the user selects the value (It is a text string) in the drop-down list, I would like to add the item they have selected to a variable in PowerApps, so I can then pass this text to a look-up table.
However, I can not seem to get the variable to populate. Here's what I'm doing:
In the OnChange element for the drop-down list, I've typed the following:
UpdateContext ({LikelihoodEntry:ThisItem.Likelihood.Value});
However, no matter what I change the Likelihood drop-down box to, the variable does not change.
Could really use some help!
Solved! Go to Solution.
In your OnChange code, instead of "ThisItem..." Type "Self.Selected.Likelihood" and see if it works.
In your OnChange code, instead of "ThisItem..." Type "Self.Selected.Likelihood" and see if it works.
That worked! Thank you very much for your help. Do you know WHY that has to be used instead?
I know when you're using a dropdown that it doesn't know what to do with "ThisItem." It's looking for Dropdown.Selected. or Self.Selected. to know what value you're looking for. I don't know anything more than that haha.
Glad to help!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
52 | |
51 | |
36 | |
33 |
User | Count |
---|---|
268 | |
97 | |
83 | |
70 | |
68 |