Skip to main content
Community site session details

Community site session details

Session Id : I+sy4HpFxloES/5UV/dgrj
Power Apps - Building Power Apps
Answered

Using Content Types in Forms

Like (0) ShareShare
ReportReport
Posted on 3 Sep 2019 15:42:22 by

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?

Categories:
  • Tom_Slosse Profile Picture
    1,430 on 02 Oct 2020 at 12:31:27
    Re: Using Content Types in Forms

    Hey @ComputerHabit2 

     

     

    No problem, I want to do something similar and was wondering how far your app went.

     

    Kind regards

     

    Tom

  • ComputerHabit2 Profile Picture
    on 02 Oct 2020 at 12:12:01
    Re: Using Content Types in Forms

    I never quite finished that form.  I will have to revisit this thought.  Since MS took SharepointDesigner Forms and Javascript away I'm stuck.

  • Tom_Slosse Profile Picture
    1,430 on 02 Oct 2020 at 10:18:45
    Re: Using Content Types in Forms

    Hey @ComputerHabit2 

     

     

    I know it has been a long time, but could you explain a bit more how you would implement that Switch into your app to show and hide fields depending on the selected content type?

     

    Kind regards

     

    Tom

  • Verified answer
    ComputerHabit2 Profile Picture
    on 03 Sep 2019 at 18:38:16
    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.


     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete