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
Nandhini S 3Nandhini S 3 

How to add bold tag in visualforce template

Hi All,

I'm creating a visualforce template with if condition. I need the field name to be displayed as bold but i'm not able to do it.
{!IF(relatedTo.custom_field__c != "", "Field Name: " +relatedTo.custom_field2__c, NULL)}
SubratSubrat (Salesforce Developers) 
Hello ,

Requesting you to follow this article for your requirement -> https://www.tutorialkart.com/visualforce/salesforce-visualforce-stylesheets-css/

Hope it helps !
Thank you.
Shri RajShri Raj
{!IF(relatedTo.custom_field__c != "", "<b>Field Name:</b> " +relatedTo.custom_field2__c, NULL)}