You need to sign in to do that
Don't have an account?
Ab
Change CSS based on value
Hello,
I have a VF text like below
Thanks for suggestion !
I have a VF text like below
<apex:outputText value="{!cObj.Type__c}" style="font-weight: bold;color: black;font-size: 160%;"/> I want to control the CSS based on Type__c value if(Type__c == XYZ) style="font-weight: bold;color: black;font-size: 160%;" else style="color: black;"
Thanks for suggestion !
style="{!if(opp.StageName='Closed Lost','color:red;font-weight: bold', 'color:black')}"/>
<apex:outputText value="{!cObj.Type__c}" style="{!if(cObj.Type__c='XYZ','font-weight: bold;color: black;font-size: 160%', 'color:black')}"/>
let me know if this helped you
Lokesh
All Answers
Let us know if it helps
style="{!if(opp.StageName='Closed Lost','color:red;font-weight: bold', 'color:black')}"/>
<apex:outputText value="{!cObj.Type__c}" style="{!if(cObj.Type__c='XYZ','font-weight: bold;color: black;font-size: 160%', 'color:black')}"/>
let me know if this helped you
Lokesh