cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Different data cards in form depending on selected gallery item

Hi,

 

I am building an app to manage project from different colleagues.

 

On the left i have a dropdown to select the person which is connected to a gallery which shows the active projects. The SharePoint list behind this app has about 20 columns, but not every column is relevant for every kind of project.

 

So for example we have 5 different kind of projects. ("soort")

And every project has about 8 different data cards (columns) that should be possible to alter using a submit form.

 

Is it possible to show a different form after gallery item has been selected based on type of project?

 

Hope you can help!

 

Kind regards,

 

Roger

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Different data cards in form depending on selected gallery item

@Rogermiddleton 

Yes, each project record should have a column called ProjectType.  It would have a values such as “Type1”, “Type2”, “Type3”.

 

Suppose you click on a record in the gallery having “Type1”.  Clicking the gallery takes you to the Form screen.

 

For any Cards you want to be visible for Type1 use this code in the Visible property.

 

Gallery1.Selected.ProjectType

 

If you want a Card visible for Type1 and Type2 do this.

 

Gallery1.Selected.ProjectType in ["Type1", "Type2"]


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Different data cards in form depending on selected gallery item

@Rogermiddleton 

Yes, each project record should have a column called ProjectType.  It would have a values such as “Type1”, “Type2”, “Type3”.

 

Suppose you click on a record in the gallery having “Type1”.  Clicking the gallery takes you to the Form screen.

 

For any Cards you want to be visible for Type1 use this code in the Visible property.

 

Gallery1.Selected.ProjectType

 

If you want a Card visible for Type1 and Type2 do this.

 

Gallery1.Selected.ProjectType in ["Type1", "Type2"]


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

Highlighted
Helper I
Helper I

Re: Different data cards in form depending on selected gallery item

Hi @mdevaney ,

 

Thank you for your reply. I tried it on the first 2 datacards and it works perfect!

 

Now i hope the data cards won't go jumping all over the place :).

 

Kind regards,

 

Roger

Highlighted
Super User III
Super User III

Re: Different data cards in form depending on selected gallery item

@Rogermiddleton 

The easiest way to ensure DataCards will not go hoping all over the place is to make them all a uniform size and use a single column layout 🙂

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,495)