can we have timed survey forms which shall stop after a particular time set by admin? urgent
Appnitro Software Forums » MachForm
timed surveys
(2 posts)-
Posted 3 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.
Posted 3 years ago #
Reply
You must log in to post.