This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
timed surveys
Started 16 years ago by amitkumarsaha | 2 posts |
-
can we have timed survey forms which shall stop after a particular time set by admin? urgent
Posted 16 years ago # -
This is possible with some small modification.
Let say you have a form with this URL: http://www.example.com/forms/view.php?id=7That means you have a form with id = 7.
Now, for an example, we need to run that form until January 5, 2009 (01-05-2008)
Edit your includes/view-functions.php, on line 1572 and line 1902 you should see this:
$form->active = $row['form_active'];
change it to become:
if($form_id == 7){ if(strtotime(date("m-d-Y")) > strtotime("01-05-2009")){ $form->active = 0; } }else{ $form->active = $row['form_active']; }
make sure to adjust the above form id number and date with your own.
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.