Posts: 55
Threads: 25
Joined: May 2009
Reputation:
0
I use form tools as a CMS. Can I take a submission/post off line without deleting?
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Aug 28th, 2010, 9:08 AM
(This post was last modified: Aug 28th, 2010, 9:10 AM by Ben.)
Hi bwaye,
Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.
Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".
Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index....ew_filters
Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.
- Ben
P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.
Posts: 55
Threads: 25
Joined: May 2009
Reputation:
0
(Aug 28th, 2010, 9:08 AM)Ben Wrote: Hi bwaye,
Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.
Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".
Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index....ew_filters
Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.
- Ben
P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.
GREAT - will give a try a post back.
Posts: 55
Threads: 25
Joined: May 2009
Reputation:
0
(Sep 1st, 2010, 7:13 AM)bwaye Wrote: (Aug 28th, 2010, 9:08 AM)Ben Wrote: Hi bwaye,
Sure! I should really write a tutorial on how to do this - it's a handy trick to do all sorts of things.
Here's the gist of it: add a new field to your database table (not form) called "Status". In your case, This would be a radio button with two options "online", "offline".
Then, for your form View(s), just add a new Standard Filter that only shows results that are set to "Online". For more info on Views and the filters, see:
http://docs.formtools.org/userdoc/index....ew_filters
Then, instead of deleting the submissions, you would just mark them as "offline". They would then disappear from view - but still be in the database.
- Ben
P.S. I'm about half-way through a new module called "Submission History". This may help as well. What it does is track all changes made to your submissions - who made them, when, and what changed between each edit. The module also keeps track of submissions that were deleted from the main form, so you always have a paper trail of deleted submissions.
GREAT - will give a try a post back.
THANKS BEN!
work like a charm -
Here is the code i used to filter the results:
mysql_select_db($database_database, $database);
$query_coupons = "SELECT * FROM ft_form_2 WHERE `online` = 'online' ORDER BY name ASC";
$query_limit_coupons = sprintf("%s LIMIT %d, %d", $query_coupons, $startRow_coupons, $maxRows_coupons);
$coupons = mysql_query($query_limit_coupons, $database) or die(mysql_error());
$row_coupons = mysql_fetch_assoc($coupons);
|