# Input value added via JS is not submitted correctly when appending it in workflow

**URL:** <https://community.weweb.io/t/input-value-added-via-js-is-not-submitted-correctly-when-appending-it-in-workflow/2454>\
**Category:** How do I?\
**Tags:** binding, xano\
**Created:** [April 25, 2023, 1:19pm UTC](https://community.weweb.io/t/input-value-added-via-js-is-not-submitted-correctly-when-appending-it-in-workflow/2454 "2023-04-25T13:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOOLAH](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/moolah/32/7164_2.png) [@MOOLAH](https://community.weweb.io/u/MOOLAH)\
**Post date:** [April 25, 2023, 1:19pm UTC](https://community.weweb.io/t/input-value-added-via-js-is-not-submitted-correctly-when-appending-it-in-workflow/2454/1 "2023-04-25T13:19:34Z")

</div>

Hey guys, I am relatively new to WeWeb, but I have made some great progress. It is highly frustrating that I am stuck on this problem which seems rather straight forward.

I have a Places autocomplete field in my form. With the JS and all, it works as expected. But I will need to send the lat/lon values instead of the places name that is shown on that input. So, I created another input short answer, and populated it’s lat/lon value as string with JS when a person selects from the list of places.

The console.log shows that the field is updated correctly. But when submitting the form, and I try to pass the value of that input, it always shows up blank in the API call. What am I doing wrong here?

I was feeling like such a brainiac when I got started with WeWeb, and this small little bug is pestering me beyond belief. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [April 25, 2023, 6:21pm UTC](https://community.weweb.io/t/input-value-added-via-js-is-not-submitted-correctly-when-appending-it-in-workflow/2454/2 "2023-04-25T18:21:08Z")

</div>

weweb is a vuejs app, any direct element manipulation with code will be out of sync with it. If you need to update variables in weweb from external js code you can use `wwLib. executeWorkflow` and change the variable with an action in the workflow.  
You can see an example in [this post](https://community.weweb.io/t/best-place-for-onfocus-and-onblur-events/1625/2).  
If this is not enough for your needs you can always create a custom element that integrates with weweb.
