How to restart an input but not a dropdown

Hi,

having a search element with few inputs and few dropdowns.

When the search button is clicked, how do I restart only the inputs but not the dropdowns?

Thanks!

P.S. I have tried adding inputs in a separate group and restaring only that particular group, but the dropdowns become restared as well.

Could you use states to achieve this? Wouldn’t be perfect, but maybe set a state when you click search to have the value be empty. Then on the inputs, have a conditional that if the state value is empty, the text / content is empty.

Haven’t tried this in practice, so not sure it’d work, but just an idea.

1 Like

Good idea! I will perhaps add this to solution I found in the meantime and sharing with you here.

In this very case the inputs and dropdowns are used in a datatype where we can create one data row with values; User and Dropdown (option set) value, and make in the Load page to get the data for even different user to populate the dropdown, and it stays apparantly even when the all other inputs are restarted. Will see how it works and additionally add your solution if necessary.

Thanks again! I will give you “Solution” for reaching with me the half solution. :slight_smile: