# Input Init Value Problem

**URL:** <https://community.weweb.io/t/input-init-value-problem/17204>\
**Category:** How do I?\
**Tags:** bug, components, component\
**Created:** [March 16, 2025, 2:16pm UTC](https://community.weweb.io/t/input-init-value-problem/17204 "2025-03-16T14:16:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![notis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/notis/32/15517_2.png) [@notis](https://community.weweb.io/u/notis)\
**Post date:** [March 16, 2025, 2:16pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/1 "2025-03-16T14:16:19Z")

</div>

Using an input component, such as the one in the Web Starter Kit, we have problems exposing the initvalue in the value variable when working with a collection value. Basically, when we have a collection in the initial value, it seems that the trigger is triggered to fill the Value variable, but it does not actually fill it.

Is there a solution for this?

---

<div class="post-metadata">

**Author:** ![Himanshu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/himanshu/32/16305_2.png) [@Himanshu](https://community.weweb.io/u/Himanshu)\
**Post date:** [March 16, 2025, 9:18pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/2 "2025-03-16T21:18:47Z")

</div>

Can you share some screenshots?

---

<div class="post-metadata">

**Author:** ![notis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/notis/32/15517_2.png) [@notis](https://community.weweb.io/u/notis)\
**Post date:** [March 16, 2025, 11:30pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/3 "2025-03-16T23:30:37Z")

</div>

In the component we have the init value, which connects with the init value of the input.

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

In the same component there is a variable to display the value typed or inserted in the input

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

If I fill in the init value directly, when the page loads, the on mounted trigger is fired and the value of the init value is added to the value variable.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/6093c116a534b1d4bdbafff5335b16416bf043bb.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/78c6e4b9585ea82f848aa91817a4d6e37ff26877.png)

However, I need this input to be filled with the value that is in a collection. An example follows:

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

However, when I load the page, the collection’s ini value is filled in but not added to the Value variable that exposes the value. As we can see in the last image.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/ae4f19622cab7e32d5491a6f5f9b86519ba0d44e.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7b129d69aa9ea699c7c9550de7a33b6955e93794.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1151c99f3e669f675c834c5035dbe2f10269f37d.png)

---

<div class="post-metadata">

**Author:** ![notis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/notis/32/15517_2.png) [@notis](https://community.weweb.io/u/notis)\
**Post date:** [March 19, 2025, 10:04pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/4 "2025-03-19T22:04:40Z")

</div>

any clues?  
@Raphael  
@Joyce  
@Mael

---

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [March 20, 2025, 11:43am UTC](https://community.weweb.io/t/input-init-value-problem/17204/5 "2025-03-20T11:43:10Z")

</div>

Hi @notis - it looks like the collection is not fetched completely when the input field is mounted on the page. You can try to add this workflow to On property change (Init value) event of the component. I’m using it this way and it is working.

---

<div class="post-metadata">

**Author:** ![notis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/notis/32/15517_2.png) [@notis](https://community.weweb.io/u/notis)\
**Post date:** [March 20, 2025, 7:47pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/6 "2025-03-20T19:47:54Z")

</div>

I tried these possibilities. It seems like something internal to the web.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [March 20, 2025, 8:41pm UTC](https://community.weweb.io/t/input-init-value-problem/17204/7 "2025-03-20T20:41:16Z")

</div>

You need to add an `On property change` workflow, that triggers when your property called `Init value` changes, so that it reacts to the change and gets propagated to the variable `value`. Check out the attached screenshot. I always do both `On mounted` and on `On [property] change`.

 ![Screenshot 2025-03-20 at 21.41.06](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e98c1d992d9b355dce916011a20c34ba967c37ed.png)
