Skip to main content
John Neff (Ring2Media) ha fatto una domanda in #Visualforce
Hi!

I am using a style attribute associated with rows in my table to create alternating colored rows in my table.  Can I add a second attribute to that so that rows will only display if they meet a certain criteria?  I am trying to say: 

 

<tr style="{!IF(MOD(count,2)==0, 'background-color: ⌗A4A4A4;','background-color: ⌗E6E6E6;')}">

AND

if display if lv.Owner_Name__c = 'Joe Smith'

is this possible??
2 risposte
  1. 28 apr 2015, 19:16
    Hi,

    Not sure if this works, but you can give it a try:

    <tr style="{!IF(lv.Owner_Name__c == 'Joe Smith', IF(MOD(count,2)==0, 'background-color: ⌗A4A4A4;','background-color: ⌗E6E6E6;'),'background-color:white;')}">

     
0/9000