function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nallurisivashankarnallurisivashankar 

displaying the data in vf page

Hi,

I have one requirement.

How display the data on visualforce page based on the dates between.i,e startdate and enddates are two custom fields.

depends on this values i need to display the remaining fields.

 

 

 

Thanks

siva

marcobmarcob

Hi Siva,

you can use conditions in VF, like 

disabled="{!IF(myBoolean,True, False)}"

This might help you.

Br, Marco

nallurisivashankarnallurisivashankar
Can you explain me in detail?



--
THANKS&REGARDS
Shiva Shankar Nalluri
marcobmarcob

More details would require more details on the problem, for the situation is a bit abstract. Can you give some more background and perhaps your existing code?

AnushaAnusha
while querying the data use the condition like date >= StartDate AND date <= EndDate

or

while displaying in vf page, use style="{!IF(Date>= obj.StartDate__c && Date <= obj.EndDate__c,'display:block;','display:none;')}"