cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ComputerHabit2
Level: Powered On

Using Content Types in Forms

I'm attempting to mimic how Content Types worked before PowerApps. 

 

I have two content types.  I added the ContentType DDL to my form, copied it and created a second form.  Each form has a Visible = true field.  I tried some logic with an if statement and using the Content Types data card and it sort of worked.  The problem is that each form has its own data card for Content Type. 

 

Now I either need to make logic for each forms visiblity or come up with code outside of the forms that could retain the content type.  I'd prefer to have something outside of the form to do my comparison.  I know there are variables but really haven't figure out how to use them yet. 

 

Is it possible to store form data somewhere outside the form to do the visiblity of a form?

1 ACCEPTED SOLUTION

Accepted Solutions
ComputerHabit2
Level: Powered On

Re: Using Content Types in Forms

Okay I got it to work. 

 

  • I added the Content Type datacard, moved it to the top. 
  • I renamed the DataCardValue to something I'd recognize.
  • I had to unlock the datacard for each column I wanted to hide.
  • I then changed the Visible properties of each datacard.
    If(ContentTypeDataCardValue.Selected.Name = "Name of Content Type",true,false)

 

The idea being that you'd show for the default content type and hide depending on the Name value of the Content type.  I figure if you had several content types you could do a Switch instead.


 

View solution in original post

1 REPLY 1
ComputerHabit2
Level: Powered On

Re: Using Content Types in Forms

Okay I got it to work. 

 

  • I added the Content Type datacard, moved it to the top. 
  • I renamed the DataCardValue to something I'd recognize.
  • I had to unlock the datacard for each column I wanted to hide.
  • I then changed the Visible properties of each datacard.
    If(ContentTypeDataCardValue.Selected.Name = "Name of Content Type",true,false)

 

The idea being that you'd show for the default content type and hide depending on the Name value of the Content type.  I figure if you had several content types you could do a Switch instead.


 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,741)