A way to have 2 possible inputs for 1 parameter?

Any advice on how to get this to work? I’d like a user to be able to select a state on the map by either clicking on the state, or by selecting it from the drop-down:

So far the user can do that, but I’d like for the map and the drop-down to update/sync when the other input is used. I’ve tried adding another layer of variables that hold the state (pun intended) and try to check for changes. For example, if the user clicks on Texas, the drop-down should also change to ‘Texas’ and vice-versa.

Any help would be appreciated! Thanks

1 Like

Here’s an example that shows one way to do this. It is based on the Custom Input Example and the Synchronized Inputs notebook.

6 Likes

This is exactly what I was looking for! I’m excited to learn more about custom inputs and .bind. Many thanks!