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

Using a Document Libary with Parent Child Relationship

I have a Power App form "Parent" that creates a document library folder. (This uses a custom "Parent Folder" content Type)
Once the folder is created I open the folder and upload "Children" documents for approval. (This uses a custom "Document" content type). 
I want to have three separate forms, one for each workflow listed below.
The problem is that when I click properties to update a file, before I make a choice from the below list, it loads up the same form as I am using for the parent folder I created. Is there a way to use separate forms based on a content type?

golfnutt8_0-1607719840832.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@golfnutt8 

You cannot have different forms based on content type.

You might want to check out and vote on this idea in the idea forum.

 

The best you can do at this stage is to account for the Content Type in your App and alter the information displayed.  This can be done easily with a different Edit Form for each content type and then setting the Visible property of the Edit form to be visible based on the current content type.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@golfnutt8 

You cannot have different forms based on content type.

You might want to check out and vote on this idea in the idea forum.

 

The best you can do at this stage is to account for the Content Type in your App and alter the information displayed.  This can be done easily with a different Edit Form for each content type and then setting the Visible property of the Edit form to be visible based on the current content type.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

This is a challenge. If my content type changes based on whether is a folder or a document I would think that I could use this value on a form (hidden) and then based on the content type "Folder" or "Document" that I could then possibly hide fields on the form based on the content type. Would that work?

RandyHayes
Super User
Super User

@golfnutt8 

Yes...this is the same concept as what I had mentioned in this statement:

The best you can do at this stage is to account for the Content Type in your App and alter the information displayed.  This can be done easily with a different Edit Form for each content type and then setting the Visible property of the Edit form to be visible based on the current content type.

This was to say that no, you cannot have a custom form for each content type (in SharePoint customization), but you can have your one customization base its information displayed, collected, etc. on the content type.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,017)