How do I hide and show two dropdowns based on change event of another selectbox?

I have a select box with hardcoded options like in the image . While choosing broker and user selection there should another dropdowns with values of brokers as well as user list from database. I need to toggle between broker dropdown and user dropdown based on the selection at the same place . Is there any work around for this ?

@Ginjo You can use the storeValue function (Store Value - Appsmith) to set a variable on the onOptionsChange event of the main select widget (paid_via).

and then evaluate the value in the JS of the Visible property for the select widgets ( in your eg: Broker,User)

1 Like

@dancia thank you for your support . Anyways I got the solution by applying tertiary condition in option value section .

2 Likes

Could you describe how you resolved this?