I have been able to set the value of 2 tokens anytime the timepicker is changed by using the below code: <input type="time" searchWhenChanged="true" token="time_token"> <label>Time Range</label> <default> <earliest>-7d@h</earliest> <latest>now</latest> </default> <change> <eval token="relstart_time">strftime(relative_time(now(), 'time_token.earliest'), "%m/%d/%Y %T")</eval> <eval token="relend_time">strftime(relative_time(now(), 'time_token.latest'), "%m/%d/%Y %T")</eval> </change> </input> However, upon page load both tokens reflect the value of now() instead of the default earliest/latest values. The values will not update until I change the timepicker. I have attempted to use multiple variations of the below settings in the <init> tag, is this the right way to go, and if so, can anyone help with the correct syntax? <init> <eval token="relstart_time">strftime(relative_time(now(), -7d@h), "%m/%d/%Y %T")</eval> <eval token="relend_time">strftime(now(),"%m/%d/%Y %T")</eval> </init>
... View more