Hi All,
Is there any way to populate fixed date range in a dropdown in Dashboard Studio ? I have done it in the XML dashboard, but not finding a way to do it in Studio (JSON). Can anyone suggest ?
XML Dashboard example: (looking for equivalent in JSON)
<input type="dropdown" token="simple">
<label>Simple Time Picker</label>
<choice value="last_24h">Last 24 Hours</choice>
<choice value="last_7d">Last 7 days</choice>
<choice value="last_30d">Last 30 days</choice>
<default>last_24h</default>
<change>
<condition value="last_24h">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-24h</set>
<set token="simple.latest">now</set>
</condition>
<condition value="last_7d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-7d</set>
<set token="simple.latest">now</set>
</condition>
<condition value="last_30d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-30d</set>
<set token="simple.latest">now</set>
</condition>
</change>
</input>