cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
Community Support
Community Support

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. 

Highlighted
Community Support
Community Support

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,829)