# How to reset a select input

**URL:** <https://community.weweb.io/t/how-to-reset-a-select-input/6966>\
**Category:** Ask us anything\
**Created:** [February 12, 2024, 11:34am UTC](https://community.weweb.io/t/how-to-reset-a-select-input/6966 "2024-02-12T11:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampannemans](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sampannemans](https://community.weweb.io/u/sampannemans)\
**Post date:** [February 12, 2024, 11:34am UTC](https://community.weweb.io/t/how-to-reset-a-select-input/6966/1 "2024-02-12T11:34:40Z")

</div>

Hello,

When a user has selected one of the options in a Select input field, is there a way to reset the Select input field (i.e. with a button) so that the placeholder text is displayed again?

In my app the user can selected a “client selection” or a “client”, but not both. When they select a “client selection”, the “client” field is disabled and vice versa.

So when they have selected a “client selection”, I’m displaying this:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a20ac582340ef5dec7a4553fb1a394b76aa9faa0.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e322a964b062431d9cbfb56167ae03ecdb01f4f9.png)  
So here the “client” field is now disabled.

I am allowing the user to remove their selection. So when they remove their selection, the Select input field is still showing the value they selected previously.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b8142d0ad1b2a2cb4b321a0f77b7b28e7fc8152b.png)

I would prefer the Select input field to show the placeholder text again.

Does anyone know how to reset this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Aasif](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aasif/32/7517_2.png) [@Aasif](https://community.weweb.io/u/Aasif)\
**Post date:** [February 12, 2024, 12:35pm UTC](https://community.weweb.io/t/how-to-reset-a-select-input/6966/2 "2024-02-12T12:35:03Z")

</div>

Hi @sampannemans

Create a clear button and add a workflow so that when a user clicks on the button, the workflow is triggered. In the workflow, you just have to reset the select input variable value to empty.

**1 : create a clear button and add a workflow**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2b6f63e506c658bdf76def9f63b11470d7b7dd23.png)

**2 : Workflow - on click, change or reset the dropdown variable to empty or leave it blank**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4bd7fb14a53799e34f80081bcc630d9c24045e81.png)

Hope this will help you
