You need to sign in to do that
Don't have an account?

Having trouble conditionally rendering table columns in VF page- can anyone help?
Hello,
I have a VF page that is using apex:repeat to create a table column for each related object record like so:
I want to add a condition where a column is only renedered if the field "Broadcast_Week__c" on the child record is greater than Today.
I have adding a "Display" attribute to the td saying:
but I am getting en error.
Can anyone help?
Thanks,
John
I have a VF page that is using apex:repeat to create a table column for each related object record like so:
<apex:repeat value="{!Quarterly_Buy__c.Media_Buys__r}" var="buys"> <td style="background-color: #D8D8D8; color: #190707;font-size:14px;" align="center"> <b>{!MONTH(buys.Broadcast_Week__c)}/{!DAY(buys.Broadcast_Week__c)}/{!VALUE(RIGHT(TEXT(YEAR(buys.Broadcast_Week__c)),2))}</b> </td>
I want to add a condition where a column is only renedered if the field "Broadcast_Week__c" on the child record is greater than Today.
I have adding a "Display" attribute to the td saying:
display: {!IF(Quarterly_Buy__c.Media_Buys__r.Broadcast_Week__c < Today(), 'none', 'table-column')};"
but I am getting en error.
Can anyone help?
Thanks,
John
Thanks!