# 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:** 4\
**Page:** 1

<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:25pm UTC](https://community.weweb.io/t/cant-access-component-variables/3109/1 "2023-06-18T22:25:50Z")

</div>

For some reason I can’t access component variables. I have some form components I want to access in my workflows. Can’t figure out how to fix it?

 ![Screenshot 2023-06-18 at 3.24.51 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/755a4817c11912fd9275dfcd11fdfa51d6952c61.png)

This is from another project.

 ![Screenshot 2023-06-18 at 3.25.01 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1e697ecb6698f3a65c533cb62b5f4bac25e14b65.png)

---

<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:39pm UTC](https://community.weweb.io/t/cant-access-component-variables/3109/2 "2023-06-18T22:39:35Z")

</div>

I figured it out, you can’t access component variables if it’s within a collection list.

Is it possible to change that?

Going to do a manual workaround in the meantime.

---

<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

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [June 19, 2023, 3:34pm UTC](https://community.weweb.io/t/cant-access-component-variables/3109/4 "2023-06-19T15:34:02Z")

</div>

> [@RCS](#):
>
> I figured it out, you can’t access component variables if it’s within a collection list.
> 
> Is it possible to change that?

Not sure it is. I’ll propose it as an improvement suggestion to the product team.

Thanks for taking the time to share the solution you found 🙌
