function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas AhoThomas Aho 

How to show field on list view only if they are certain values

I have a system setup where fields are either pass or fail for equipment inspections. I would like to display only the failed fields on list view. Is this something I can do?
Best Answer chosen by Thomas Aho
SwethaSwetha (Salesforce Developers) 
HI Thomas,
There is no out of the box way to achieve this. This should be possible with custom code.

See similar posts from past
apex:listViews  https://developer.salesforce.com/docs/atlas.en-us.234.0.pages.meta/pages/pages_compref_listViews.htm
https://stackoverflow.com/questions/11636005/how-do-i-customize-the-columns-in-a-apexlistview
https://salesforce.stackexchange.com/questions/245/dynamic-number-of-columns-in-a-pageblocktable
https://developer.salesforce.com/forums/?id=9060G0000005cePQAQ

Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Thomas,
You should be able to do this by creating a new list view and set filter there that the specific field with value fail should only be displayed

See https://trailhead.salesforce.com/en/content/learn/modules/lex_customization/lex_customization_list for more details.
User-added image

If this information helps, please mark the answer as best. Thank you.
Maharajan CMaharajan C
Hi Thomas,

I hope you are trying to filter the records based on the some field values . If yes then you have to use the list view filter.  

 User-added image

Note : You can't controll the field colums dynamically based on field value.

Thanks,
Maharajan.C
Thomas AhoThomas Aho
Is it possible to make a suggestion to allow us to dynamically display colums based on field value because it sounds like that is what I am looking to do
SwethaSwetha (Salesforce Developers) 
HI Thomas,
There is no out of the box way to achieve this. This should be possible with custom code.

See similar posts from past
apex:listViews  https://developer.salesforce.com/docs/atlas.en-us.234.0.pages.meta/pages/pages_compref_listViews.htm
https://stackoverflow.com/questions/11636005/how-do-i-customize-the-columns-in-a-apexlistview
https://salesforce.stackexchange.com/questions/245/dynamic-number-of-columns-in-a-pageblocktable
https://developer.salesforce.com/forums/?id=9060G0000005cePQAQ

Thank you
This was selected as the best answer
Jennifer samiJennifer sami
How about we do that! As a purchaser, we need an item that is financially savvy, never-ending, subjective, and a tried and true brand best TIG welder under $2000 (https://protigwelders.com/best-tig-welder-under-2000/). You should have the option to do this by making another rundown view and set channel there that the particular field with esteem come up short ought to just be shown.