The following steps fixed the issue.
Addition of true to the second dropdown.
Unset the second dropdown selection when the first dropdown selection changes.
Given below is the snippet:
<label>First Dropdown:</label>
<search>
<query>……. </query>
</search>
<fieldForLabel> First Dropdown</fieldForLabel>
<fieldForValue> First Dropdown</fieldForValue>
<default>A</default>
**<change>
<unset token="form. second_dropdown "></unset>
</change>**
</input>
<input type="dropdown" token="second_dropdown" searchWhenChanged="true">
<label>Second Dropdown:</label>
<search>
<query>…….. </query>
</search>
<fieldForLabel> Second Dropdown</fieldForLabel>
<fieldForValue> Second Dropdown</fieldForValue>
**<selectFirstChoice>true</selectFirstChoice>**
Thanks!
... View more