You need to sign in to do that
Don't have an account?
Aceldama
Error when writing IF formula on VF template
Hello all. I have formula I am trying to work out. We want to display a section in a VF template only during certain dates so that we don't need to log in and alter the VF email template over the weekend.
I've got it to work with the help of a colleague, but not exactly optimal:
{!IF(TODAY()<DATE(2013,07,06),true,false)}">"My Message"</apex:outputtext>
What I'd really like to do is this, but keep getting errors with extra ",":
{!IF((OR(TODAY()=DATE(2013,07,03)),(TODAY()=DATE(2013,07,04)),(TODAY()=DATE(2013,07,05))),true,false)}</apex:outputtext>
Any help?
try
{!IF(OR(TODAY()=DATE(2013,07,03)),(TODAY()=DATE(2013,07,04)),(TODAY()=DATE(2013,07,05))),true,false)}