• SFDC_Beginer
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,

 

I have a list of records that are returning from class to vf of pageblocktable.

 

Now, in that list the field status__c contains the values pass or fail.

 

suppose if the status__c is "fail" then i would like to apply the color as "Red". If it is "pass" i would like to apply the color as "Green" to this value on VF page.

 

Can any one please give a statement for applying different colors using style class on vfpage?

 

 

Thanks

Hi,

 

I have a list of records that are returning from class to vf of pageblocktable.

 

Now, in that list the field status__c contains the values pass or fail.

 

suppose if the status__c is "fail" then i would like to apply the color as "Red". If it is "pass" i would like to apply the color as "Green" to this value on VF page.

 

Can any one please give a statement for applying different colors using style class on vfpage?

 

 

Thanks