cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BlancaO
Level: Powered On

Need cascading dropDown as SharepointIntegration Form Input

Hi!

I am creating an App through the SharePoint Integration experience.  One of my inputs needs to be a dropdown menu.  The trick is, the options in the dropdown need to be based on the values of a secondary list. For example:
List1 has three columns: Group, Product, Status
List2 has three columns: Group, Product, Action
The "Product" column on List2 needs to be a dropdown that reflects the Products from List1 that belong to the same "Group" as the item that you are in on List2, and with "Status"="Active".

 

The "Product" column in List2 cannot be:

 - a Lookup column in SharePoint because the returned value needs to be a list.

 - a Calculated column because the source is on a different list (and the solution needs to be a list).

 - a Choice Column because the choices will dynamically change with the changes in List1.

 

I appreciate the help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Need cascading dropDown as SharepointIntegration Form Input

Hi @BlancaO ,

Could you please share a bit more about the "Product" column in your List1 and List2? Are they both Text type column?

 

Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following workaround:

1.  "Product" column in List1 and List2 are both Text type column, Status column in List 1 is Text column

a. Unlock the Product data card in your Edit form, remove the Original Text Input box, instead, add a Dropdown control.

b. Set the Items property of the Product Dropdown box to following:

Filter('List 1', Group = GroupFieldTextBox.Text, Status = "Active").Product

 set the Update property of the Product Data card to following:

ProductDropdown.Selected.Product

Note: The GroupFieldTextBox represents the Group Text Input box in your current Edit Form.

 

2.  "Product" column in List2 is Text type column, Status column and the Product column in List 1 are both Choice column:

a. Unlock the Product data card in your Edit form, remove the Original Text Input box, instead, add a Dropdown control.

b. Set the Items property of the Product Dropdown box to following:

 

Filter(
       Choices('List 1'.Product),
       Value in ForAll(
                       Filter('List 1', Group.Value = GroupFieldTextBox.Text, Status.Value = "Active"),
                       Product.Value
               )
)

 

 set the Update property of the Product Data card to following:

 

ProductDropdown.Selected.Value

 

Note: The GroupFieldTextBox represents the Group Text Input box in your current Edit Form.

 

Please consider take a try with above solution, 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

3 REPLIES 3
Super User
Super User

Re: Need cascading dropDown as SharepointIntegration Form Input

Have you watched @Shanescows  video on Cascading Dropdowns?  It's one of the easiest to follow out there and should be of assistance.   https://www.youtube.com/watch?v=pkZG2boN7jQ  

Community Support Team
Community Support Team

Re: Need cascading dropDown as SharepointIntegration Form Input

Hi @BlancaO ,

Could you please share a bit more about the "Product" column in your List1 and List2? Are they both Text type column?

 

Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following workaround:

1.  "Product" column in List1 and List2 are both Text type column, Status column in List 1 is Text column

a. Unlock the Product data card in your Edit form, remove the Original Text Input box, instead, add a Dropdown control.

b. Set the Items property of the Product Dropdown box to following:

Filter('List 1', Group = GroupFieldTextBox.Text, Status = "Active").Product

 set the Update property of the Product Data card to following:

ProductDropdown.Selected.Product

Note: The GroupFieldTextBox represents the Group Text Input box in your current Edit Form.

 

2.  "Product" column in List2 is Text type column, Status column and the Product column in List 1 are both Choice column:

a. Unlock the Product data card in your Edit form, remove the Original Text Input box, instead, add a Dropdown control.

b. Set the Items property of the Product Dropdown box to following:

 

Filter(
       Choices('List 1'.Product),
       Value in ForAll(
                       Filter('List 1', Group.Value = GroupFieldTextBox.Text, Status.Value = "Active"),
                       Product.Value
               )
)

 

 set the Update property of the Product Data card to following:

 

ProductDropdown.Selected.Value

 

Note: The GroupFieldTextBox represents the Group Text Input box in your current Edit Form.

 

Please consider take a try with above solution, 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

BlancaO
Level: Powered On

Re: Need cascading dropDown as SharepointIntegration Form Input

Thansk!! It worked really well! I didn't know I could change the controls within the DataCard!

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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