# Bug on Input field

**URL:** <https://community.weweb.io/t/bug-on-input-field/17783>\
**Category:** How do I?\
**Created:** [April 15, 2025, 8:25am UTC](https://community.weweb.io/t/bug-on-input-field/17783 "2025-04-15T08:25:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![fnicoli](https://avatars.discourse-cdn.com/v4/letter/f/f04885/32.png) [@fnicoli](https://community.weweb.io/u/fnicoli)\
**Post date:** [April 25, 2025, 11:09pm UTC](https://community.weweb.io/t/bug-on-input-field/17783/8 "2025-04-25T23:09:34Z")

</div>

**EDIT** : I found out a better workaround than this one. Check [here](https://community.weweb.io/t/bug-on-input-field/17783/14) or use the Conditional Rendering workaround presented by @DanielL.

* * *

Hey @tcc, I’ve found a workaround for these input bugs. Instead of using the “reset variable value” action, you can use a **Custom JavaScript** action, use **document.getElementById()** to select the input and then change it’s value via JS.

For this, first of all, you’ll have to define an `id` to your input. It’s under **HTML attributes** (near **Element’s name** ). This must be unique! Let’s say yours is gonna be `inputChatPrompt`.

Next, head back to your workflow, and on the **Custom JavaScript** action, on the **JavaScript code** part, fill in:

```auto
document.getElementById('inputChatPrompt').value = ""

```

This will reset the input value. If you want to set the value to `something else`, just:

```auto
document.getElementById('inputChatPrompt').value = "something else"

```

In my app, since I have multiple input fields relying on workflows for formatting, I’ll probably wait a few more days for the support ticket before applying this fix to every input that’s broken.

---

_[View the full topic](https://community.weweb.io/t/bug-on-input-field/17783)._
