# How to change the value of the input with an api call result

**URL:** https://community.weweb.io/t/how-to-change-the-value-of-the-input-with-an-api-call-result/8270
**Category:** How do I?
**Created:** [April 23, 2024, 8:48pm UTC](https://community.weweb.io/t/how-to-change-the-value-of-the-input-with-an-api-call-result/8270 "2024-04-23T20:48:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lorangel](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@lorangel](https://community.weweb.io/u/lorangel)
#### Post date: [April 23, 2024, 8:48pm UTC](https://community.weweb.io/t/how-to-change-the-value-of-the-input-with-an-api-call-result/8270/1 "2024-04-23T20:48:32Z")

</div>

I have a button that on click triggers an api call that returns me a json, ive already try to trigger the fetch collection or find some way to bind the input with some variable with no sucess.

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

Im new on weweb by the way

---

<div class="post-metadata">

### Author: ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)
#### Post date: [April 24, 2024, 12:08pm UTC](https://community.weweb.io/t/how-to-change-the-value-of-the-input-with-an-api-call-result/8270/2 "2024-04-24T12:08:49Z")

</div>

Use change variable value, select the variable that comes from the input, bind to the result of the action(the bolt icon)

---

<div class="post-metadata">

### Author: ![lorangel](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@lorangel](https://community.weweb.io/u/lorangel)
#### Post date: [April 24, 2024, 1:22pm UTC](https://community.weweb.io/t/how-to-change-the-value-of-the-input-with-an-api-call-result/8270/3 "2024-04-24T13:22:51Z")

</div>

Thanks!
