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

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

@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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

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 the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (74,035)