Skip to main content

Hello Trailblazers,

 

I have a knowledge base that I am using in Experience Cloud.

 

One of the knowledge record types has a custom field, I want to display the content of the field but I don't want to display the field name (Step By Step Procesdure) to the experience cloud user. The label is a bit unnecessary and unattractive from a UI perspective.

 

I have attached a screenshot of the page layout in set up. I don't want to hide the field, just make the field name hidden in Experience Cloud.

 

Is this possible to do?

 

Thanks Trailblazers

4 risposte
  1. Michael Brown (Salesforce) Forum Ambassador
    9 gen 2024, 17:40

    Hey Kevin, no problem! I would create two sections. In the first section, place the field whose label you want to hide and use this code (assuming this is the first section on the page)

     

    .selfServiceArticleLayout .test-id__section:nth-child(1) .test-id__field-label-container {display: none;}

    In the 2nd section, add the remaining fields, and the fields in this section will have their labels and values will displayed

     

    As far as the record types, you can use a separate page layout for each, and only add the hidden section to the applicable record type's page layout.