cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

get selected dropdown values from manual items

I have connected the app to an excel on OneDrive and I have created a manual dropdown and added few values to the items. How do I get the selected value of dropdown to be populated upon saving. I used on OnSelect and onChange.

 

Dropdown1.SelectedText

 

and its blank in excel after saving.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: get selected dropdown values from manual items

Hi @0tk ,

Based on the screenshot that you mentioned, I think the second solution I provided could achieve your needs.

 

According to the screenshot that you mentioned, I think you add the Dropdown box outside the Edit form, is it true? Do you want to save the selected Dropdown value back to your Excel table, when you click the "Submit" button, right?

 

Firstly, remove the formula from the OnSelect and OnChange property of the Dropdown box. Then set the OnSuccess property of the EditForm1 to following:

Patch(
      'Your Excel Table',
      EditForm1.LastSubmit,
      {
        KPIField: Dropdown1.Selected.Value
      }
);
Back()

set the Default property of the Dropdown box to following:

BrowseGallery1.Selected.KPIField

Note: The KPIField represents the field in your Excel table to store the Dropdown box selected value.

 

Please take a try with above formula, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: get selected dropdown values from manual items

Hi @0tk ,

Have you tried Dropdown1.Selected

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Community Support
Community Support

Re: get selected dropdown values from manual items

Hi @0tk ,

Could you please share a screenshot about your app's configuration?

Do you bind the Dropdown box to a certain field in your Excel table within the Edit form?

 

If you remove the normal Text Input box within the field data card in your Edit form, instead, add a Dropdown box inside it, please make sure the Update property of the field data card is set to following:

Dropdown1.Selected.Value

set the Default property of the Dropdown box to following:

ThisItem.FieldName

after that, when you click the "Submit" button, then selected value within the Dropdown box would be saved back to your Excel table.

 

If you add the Dropdown box out side the Edit form, and you want the selected value within the Dropdown box to be saved back to your Excel Table when you submit your form data, I think the OnSuccess property of the Edit form and Patch function could achieve your needs.

Set the OnSuccess property of the Edit form to following:

Patch(
       'Excel Table',
        EditForm1.LastSubmit,
        {
          FieldName: Dropdown1.Selected.Value
        }
);
Back()

Set the Default property of the Dropdown box to following:

BrowseGallery1.Selected.FieldName

Note: The FieldName represents the field in your Excel table, which is used to store the Dropdown box selected value.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: get selected dropdown values from manual items

Have attached the configuration I made.

Highlighted
Community Support
Community Support

Re: get selected dropdown values from manual items

Hi @0tk ,

Based on the screenshot that you mentioned, I think the second solution I provided could achieve your needs.

 

According to the screenshot that you mentioned, I think you add the Dropdown box outside the Edit form, is it true? Do you want to save the selected Dropdown value back to your Excel table, when you click the "Submit" button, right?

 

Firstly, remove the formula from the OnSelect and OnChange property of the Dropdown box. Then set the OnSuccess property of the EditForm1 to following:

Patch(
      'Your Excel Table',
      EditForm1.LastSubmit,
      {
        KPIField: Dropdown1.Selected.Value
      }
);
Back()

set the Default property of the Dropdown box to following:

BrowseGallery1.Selected.KPIField

Note: The KPIField represents the field in your Excel table to store the Dropdown box selected value.

 

Please take a try with above formula, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
New Member

Re: get selected dropdown values from manual items

excellent, I'm just beginning to use PowerApps and understood the concepts now.. Works great..

Thanks for the assistance.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,791)