Activity › Forums › Salesforce® Discussions › How to change background color based on value ?

  • Gourav

    Member
    August 31, 2016 at 1:06 PM

    Hi,

    Try this code-

    <apex:outputText value="{!o.Textfield}" style="color:{!Case(o.Textfield, 'closed', 'red', 'open ', 'green ','Existing','grey','None')};"/>

Log In to reply.

Popular Salesforce Blogs

Success Stories – How DemandBlue Helped Its Clients Improve Revenue Recognition with Salesforce Revenue Cloud Implementation

Blog in

Businesses that deal with subscription-based contracts, usage-based billing or other complex contracts face several difficulties in managing their billing cycle. Though Salesforce CPQ implementation does the heavy-lifting…

Popular Salesforce Videos