Loading...
 
Features / Usability

Features / Usability


How to create range filter for 2 dates from 2 tracker fields in a custom search

posts: 8632 Israel

Hello,

On a tracker I have 2 date fields From and To
I have a trackeritem with this values:

  • From (2022-11-28)
  • To (2022-12-28)


On a customsearch plugin I want to filter all the items within a range between those fields, find any items within the range of those fields. Kind of something that do any flight or hostel reservation (check-in check-out).

At https://doc.tiki.org/PluginCustomSearch#Date_Range_Picker I see examples but for a single field like modification date. Does anyone has the formula to use the date range picker but using 2 dates ?

posts: 126885 United Kingdom

So do you mean you do a list plugin (say) on the first tracker, and then want to use the result from that to set a range in another subsequent customsearch?

Never tried that but it should be possible if you get all the {literal} tags sorted out - but i'm not sure that's what you mean?

posts: 8632 Israel

No no plugin list involved.

I would like ONE customsearch with a filter made of 2 date picker to output results between 2 dates from 2 tracker fields. (datestart and dateend)

Screen Shot 2022 11 28 At 18.42.32


Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  25 Mar 2024 17:00 GMT-0000
29th anniversary WikiBirthday (With Ward Cunningham)
3)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
5)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9) 
Tiki birthday
10)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting