Change the autofilter search value dateTo from the autofilter search value dateFrom

QuestionsChange the autofilter search value dateTo from the autofilter search value dateFrom
Massimo Gagliardi asked 9 years ago

Hi ABu,
could you suggest me a solution for the question in the subject?
I have two date fields in my DB.
In the search toolbar I set the first date to first day of the current month and the 2nd to the last day.
I would that when I change the first date filter (datefrom) to another month the 2nd filter could change to the last day of the new month choosed by the first filter.
Is't possible and how?
Thanks in advance.
Massimo Gagliardi

1 Answers
Abu Ghufran answered 9 years ago

Hello,

Manual JS event binding would be required for that.
The autofilter inputs have id 'gs_fieldname' so in loadcomplete event, you can bind .blur() event of dateFrom to set the value of dateTo using JS code.

Your Answer

5 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?