I managed to create the filter as i wanted by adding a excel formula to my data sheet (Column A contains date):
OPTION 1 - Slider For days ago: =DATEDIF(A1;TODAY();"d") For months ago: =DATEDIF(A1;TODAY();"m") For years ago: =DATEDIF(A1;TODAY();"y")
Now i have 3 sliders for days, months and years. But i would like the user to be able to only use one slider at the same time. Because now, if the first filter (days ago) is used, the second (months ago) wont do anything unless the filter is reset.
Is there a way i can prevent the use of multiple filters at once?
OPTION 2 - Checkbox
1 Month ago: =IF(DATEDIF(A1;TODAY();"m")=0;"Yes";"") 3 months ago =IF(DATEDIF(A1;TODAY();"m")<=3;"Yes";"")
Same question, can i prevent multiple boxes checked?
Unfortunately at the moment it is not possible to use dependency in filters for range slider. But if i understand you right for checkboxes is possible with our Powerfull filters add-on.
You can try wpDataTables add-ons before purchase on these sandbox site and check is that what you lookimg for.
Hi Support,
I need a date based filter for a table that filters:
month, 3 months, 6 months, year, max (all)
This so that i can view data:
- from 1 month ago until today
- 3 months ago until today
- ect
The input is 31/01/2019 (D/M/Y).
Is this possible? Thanks in advance.
Hello again KaigeProductions.
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
You could only do this with SQL Query based tables, using the curdate() function.
You can read more about this here.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I managed to create the filter as i wanted by adding a excel formula to my data sheet (Column A contains date):
OPTION 1 - Slider
For days ago:
=DATEDIF(A1;TODAY();"d")
For months ago:
=DATEDIF(A1;TODAY();"m")
For years ago:
=DATEDIF(A1;TODAY();"y")
Now i have 3 sliders for days, months and years. But i would like the user to be able to only use one slider at the same time. Because now, if the first filter (days ago) is used, the second (months ago) wont do anything unless the filter is reset.
Is there a way i can prevent the use of multiple filters at once?
OPTION 2 - Checkbox
1 Month ago:
=IF(DATEDIF(A1;TODAY();"m")=0;"Yes";"")
3 months ago
=IF(DATEDIF(A1;TODAY();"m")<=3;"Yes";"")
Same question, can i prevent multiple boxes checked?
Hello KaigeProductions,
Aleksandar is on vacation an I will answer you.
Unfortunately at the moment it is not possible to use dependency in filters for range slider. But if i understand you right for checkboxes is possible with our Powerfull filters add-on.
You can try wpDataTables add-ons before purchase on these sandbox site and check is that what you lookimg for.
Powerful Filters |
All useful information about all wpdatatables features that are explained (video and text) you can find in our DOCUMENTATION.
Best regards
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables