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

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 III
Helper III

Thank you all this works!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,679)