Hi @nabeel652, You should use valid values from the dropdown contents as default and initial settings. Changing last_week token init to formatted value will help you, please try below; <fieldset submitButton="false">
<input type="dropdown" token="week">
<label>week</label>
<fieldForLabel>time</fieldForLabel>
<fieldForValue>start_time</fieldForValue>
<search>
<query>| makeresults count=52
| fields - _time
| streamstats count
| eval count=count-1
| eval start_time = relative_time(now(),"-".count."w@w+1d")
| eval time = case(count==1, "Last week", count==0, "Current week", 1==1, strftime(start_time,"%a %d-%b-%Y"))
| table time, start_time
| eval start_time=round(start_time,0)</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<default>$last_week$</default>
<initialValue>$last_week$</initialValue>
</input>
</fieldset>
-- The token initialisation that calculates last week wrt now():
<init>
<eval token="last_week">strftime(relative_time(now(),"-1w@w+1d"),"%a %d-%b-%Y")</eval>
</init>
... View more