# Can't access component variables

**URL:** <https://community.weweb.io/t/cant-access-component-variables/3109>\
**Category:** Ask us anything\
**Created:** [June 18, 2023, 10:25pm UTC](https://community.weweb.io/t/cant-access-component-variables/3109 "2023-06-18T22:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RCS](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@RCS](https://community.weweb.io/u/RCS)\
**Post date:** [June 18, 2023, 10:52pm UTC](https://community.weweb.io/t/cant-access-component-variables/3109/3 "2023-06-18T22:52:58Z")

</div>

If anybody is looking for solution:

> [@Are form variables not visible while the form is in a collection item?](https://community.weweb.io/t/are-form-variables-not-visible-while-the-form-is-in-a-collection-item/1138/5):
>
> Haha I feel you man, doing the same here laughing My input id bind to something like this : [image] My checkout button bind quantite parameter to this js : return document.getElementById("kit"+context.item.data['id']).value

---

_[View the full topic](https://community.weweb.io/t/cant-access-component-variables/3109)._
