# How can I disable the submit button?

**URL:** <https://community.weweb.io/t/how-can-i-disable-the-submit-button/1023>\
**Category:** How do I?\
**Created:** [August 19, 2022, 4:46pm UTC](https://community.weweb.io/t/how-can-i-disable-the-submit-button/1023 "2022-08-19T16:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteletkemansst](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@peteletkemansst](https://community.weweb.io/u/peteletkemansst)\
**Post date:** [August 19, 2022, 4:46pm UTC](https://community.weweb.io/t/how-can-i-disable-the-submit-button/1023/1 "2022-08-19T16:46:57Z")

</div>

It’s easy enough to hide/show the submit button with variables.  
However, how do you disable/enable submit buttons with variables?

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [August 19, 2022, 4:54pm UTC](https://community.weweb.io/t/how-can-i-disable-the-submit-button/1023/2 "2022-08-19T16:54:00Z")

</div>

@peteletkemansst , the easiest way is to add a Filter action on the top of your submit/click workflow.  
So on click, we will first check the condition, and if it is false, the workflow will not be executed.  
You can use the same condition to customize the appearance of the button.  
New states are currently in developement, which will make it easier for the style part.

---

<div class="post-metadata">

**Author:** ![peteletkemansst](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@peteletkemansst](https://community.weweb.io/u/peteletkemansst)\
**Post date:** [August 19, 2022, 5:18pm UTC](https://community.weweb.io/t/how-can-i-disable-the-submit-button/1023/3 "2022-08-19T17:18:43Z")

</div>

Thanks, that does help out.  
I had forgotten about creating and using custom states.  
Reading up on them and other features right after I press submit.
