UI Builder - Adding custom options to a date filter using script

Tim D Scott
Giga Guru

Hi All,

 

I have a UI builder page with a date range filter. I need to add some custom options to the filter, such as Last 24 hours etc. I've got as far as this:

 

TimDScott_0-1685096907648.png

 

But I don't think the values are correct, the labels display ok when the filter is selected, but when I select either the date range is just set to yesterday. 

 

Has anyone done anything with custom filters? Any examples?

 

Thanks,

 

Tim.

 

0 REPLIES 0