Appnitro Software Forums » MachForm

timed surveys

(2 posts)
  • Started 3 years ago by amitkumarsaha
  • Latest reply from yuniar

  1. can we have timed survey forms which shall stop after a particular time set by admin? urgent

    Posted 3 years ago #
  2. This is possible with some small modification.
    Let say you have a form with this URL: http://www.example.com/forms/view.php?id=7

    That 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 #

RSS feed for this topic

Reply

You must log in to post.