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

View form only show fields that have data

Hey all- 

 

So I have a sharepoint list with many content types. Since you can't select content type form in Powerapps, I just customized each screen to match each content type. However, I would love to only use one screen for viewing and not separate view screens for each content type. Right now, if it was one screen, every single column would have to show up on the detail screen. Is it possible to only columns/fields where people have input data? 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: View form only show fields that have data

Hi @TorreyFalconer ,

Do you want to only display fields that are not empty value in a display form?

If so, you just need to set the fields' datacards' Visible.

I've made a similar test for your reference:

1)choose all the fields to display in the display form10183.PNG

2)Set all the datacards' Vsible like this:

!IsBlank(ThisItem.fieldname)  //please replace the field name with the datacard belongs to10184.PNG

 

 

And then, only the field's data is not empty, the field will display.

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: View form only show fields that have data

You can control what shows by using the Visible property. You can use the UpdateContext() to set each "Type" option you have and then put each column to only show for the "Type" you want it to show for. 

 

If you think that will help and want more detail let me know. Is this showing in a Form or Gallery...where do you mean you want it to show? Will work either way, just curious. 

Community Support Team
Community Support Team

Re: View form only show fields that have data

Hi @TorreyFalconer ,

Do you want to only display fields that are not empty value in a display form?

If so, you just need to set the fields' datacards' Visible.

I've made a similar test for your reference:

1)choose all the fields to display in the display form10183.PNG

2)Set all the datacards' Vsible like this:

!IsBlank(ThisItem.fieldname)  //please replace the field name with the datacard belongs to10184.PNG

 

 

And then, only the field's data is not empty, the field will display.

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (2,152)