The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
How to add custom date filters? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: How to add custom date filters? (/showthread.php?tid=14527)



How to add custom date filters? - lolekbolek - Aug 15th, 2016

My form collects service requests from clients. To view them, I go to "View submissions", where I see a table with all the fields. Right now, it is sorted by "Date of service", but the problem is that the first page of the table starts with the first service date that was entered long time ago.

Question 1: can I add a filter like "All dates after first of month" or "All dates after today" (including today), or "60 days after today"?
Question 2: can I make any of such filters the default when I open the view?

Many thanks in advance!


RE: How to add custom date filters? - ADaniel - Sep 2nd, 2016

This has been on the wish list to be added as a feature in FormTools by other users for awhile now, but no change has yet been made to that Standard Filter in the View itself.

The only way I can think to get around this is bit clumsy, but would provide the ability to do some filtering. Copy your existing View as many times as you need to make additional Views, each containing a "Standard Filter" with a specific date range. For instance, one view could have a filter of anything after a specific date, or between two dates (such as a month range), etc. Create as many Views as you need basic filters (obviously awkward to create an infinite number of views for every scenario, so you might have a View that contains a filter for specific year, or specific month/year). Then make sure the particular client who needs this is assigned the view(s). You can easily switch between the views when you pull up the Form's list on your screen, as the views accessible to the particular user appear in a drop down box on the upper right.