
I was able to find a way to hide the Title and UR name fields, from reading other posts with this code, but I'm having a hard time with the body name field.
.content .forcePageBlockSectionRow ~ .forcePageBlockSectionRow{
display:none;
Does anyone have any suggestions on this? Thanks!
3 件の回答
Hi Maddy,
You can achieve this through the CSS please try below CSS as it may help you in solving your problem.
Adding this code to your css will globably hide all field labels:
.selfServiceArticleLayout .test-id__field-label{
display:none;
}
If you want to selectively hide field labels, you can use the n'th child concept.
https://css-tricks.com/useful-nth-child-recipies/ (https://css-tricks.com/useful-nth-child-recipies/ )
When we did that, it looked like this:
.slds-form>.slds-grid:nth-child(-n+2) .slds-form-element__label{
display:none;
}
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha