cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rogermiddleton
Helper II
Helper II

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
mdevaney
Super User
Super User

@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
mdevaney
Super User
Super User

@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

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

@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
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,726)