cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bochie
Resolver I
Resolver I

Pass a Value from a gallery row column to a choice type column in a form

Hi All!

 

I hope somebody can help and this might be easy for some. I have a gallery that exactly filters to just one row from a huge SharePoint list. I added a button to the gallery and OnSelect of that button, I set a variable like this Set(varSingleRow, ThisItem).

I then use that variable to pass along values to a form that is in edit mode. I can pass along the values for single text, number and multi-line type of fields to the form, but I am not able to pass the value of a matching choice field (Fruits) from the variable to another choice field (Fruits) in the form. When I set the datacard value of the choice column in the form (varSinglerow.Fruits.Value) I get the "Expected Table value" error, which means I am not able to pass the value in the record (Fruits).

1 ACCEPTED SOLUTION

Accepted Solutions

@Bochie ,

I assume you are talking about a Combo Box (not a drop-down). Assuming its Items are also Choices(), try this in the DefaultSelectedItems

{Value:varSinglerow.Fruits.Value}

 

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.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

@Bochie ,

Have you tried passing this as the Default of the control (I assume a text box) in the card?

 

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.

 

Hi @WarrenBelz ,

The datatype of the input field I want to pass data to is complex and a drop-down input. Yes i tried passing it in the Default property of the field in this formula varSinglerow.Fruits.Value but I get a "Expected Record value" error. When I tried the formula in the Items property of the drop-down control, I get the error "Expected Table value".

@Bochie ,

I assume you are talking about a Combo Box (not a drop-down). Assuming its Items are also Choices(), try this in the DefaultSelectedItems

{Value:varSinglerow.Fruits.Value}

 

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.

View solution in original post

@WarrenBelz ,

 

It is a drop down and not a combo box but I did try the formula in the DefaultSelectedItems property and it worked! Thank you sir! 🙌

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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