Check This Code:
<form>
<label>dropdown demo</label>
<fieldset submitButton="false">
<input type="dropdown" token="category">
<label>event category</label>
<choice value="Car">Car</choice>
<choice value="Bike">Bike</choice>
<default>Car</default>
<initialValue>Car</initialValue>
</input>
<input type="dropdown" token="name_tok">
<label>name</label>
<fieldForLabel>a</fieldForLabel>
<fieldForValue>a</fieldForValue>
<search>
<query>| makeresults | eval category="Car" | eval a=if(category="$category$","suv,xuv,hatchback ","pulsar,passion,stunner") | eval a=split(a,",") | mvexpand a | table a</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
</input>
</fieldset>
</form>
... View more