This topic is locked
[SOLVED]

 Hide Field if event date is in the past

8/20/2016 5:44:39 PM
PHPRunner General questions
M
mhollibush author

Any Help would be greatly appreciated
I have a "Pre-Register" link on the view page of an event

I want to hide that link if the date of the event is the current date or has past.
Any help would be greatly appreciated

romaldus 8/21/2016



Any Help would be greatly appreciated
I have a "Pre-Register" link on the view page of an event

I want to hide that link if the date of the event is the current date or has past.
Any help would be greatly appreciated


in view page before display event:

if (strtotime($values["your_date_field"]) <= (Time()))
$pageObject->hideField("pre_register");
M
mhollibush author 8/21/2016



in view page before display event:

if (strtotime($values["your_date_field"]) <= (Time()))
$pageObject->hideField("pre_register");



Thank You !!!!