cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Greg68
Helper II
Helper II

Add a dropdown menu selection to a form in canvas app to update a text field in a SharePoint list

Hello everyone,

 

In a canvas app, I have a gallery and an edit form that updates a SharePoint list, one of the fields in this list is a text field, but in the form I want to add a drop menu selection instead of a text box, so when a user updates this text field from the form he will have the menu to select preset items from this menu.

 

Is that possible?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Greg68 

Unlock the card and hide the textinput box. Put your dropdown in the card and then click on the card and select the Update property. Delete the reference to the textbox and replace it with Dropdown.Selected.Value

Replace dropdown in the above with the actual name of your dropdown.

View solution in original post

4 REPLIES 4
Drrickryp
Super User
Super User

@Greg68 

Unlock the card and hide the textinput box. Put your dropdown in the card and then click on the card and select the Update property. Delete the reference to the textbox and replace it with Dropdown.Selected.Value

Replace dropdown in the above with the actual name of your dropdown.

Drrickryp
Super User
Super User

@Greg68 

Unlock the card and hide the textinput box. Put your dropdown in the card and then click on the card and select the Update property. Delete the reference to the textbox and replace it with Dropdown.Selected.Value

Replace dropdown in the above with the actual name of your dropdown.

BCLS776
Super User
Super User

Yes, you can make this work properly by modifying the Update property of the datacard associated with the text field to something like:

Dropdown1.Selected.Text

Depending on how the dropdown's items are populated, sometimes you use .Value or .Result instead of .Text. Let the Intellisense feature help you complete that part of the argument.

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Greg68
Helper II
Helper II

Thank you all this works!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,991)