cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
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  

Highlighted
Community Support
Community Support

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

Highlighted
Frequent Visitor

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,676)