# getKeyValue + lookup

**URL:** <https://community.weweb.io/t/getkeyvalue-lookup/17276>\
**Category:** How do I?\
**Tags:** binding\
**Created:** [March 18, 2025, 4:36pm UTC](https://community.weweb.io/t/getkeyvalue-lookup/17276 "2025-03-18T16:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcc](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tcc](https://community.weweb.io/u/tcc)\
**Post date:** [March 18, 2025, 4:36pm UTC](https://community.weweb.io/t/getkeyvalue-lookup/17276/1 "2025-03-18T16:36:36Z")

</div>

I have same formula on the same button. When I load the page, the formula is showing a result, and therefore the button is “disabled” or “ghost”, but when I change the variable (Select Folder-value), it doesn’t manage to calculate it, so there is no result and it is not showing correctly the button.  
I have a workflow on the Select Folder-value, that fetches all the collections and changes the all the variables.  
Has someone an idea how to fix this?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/de3041623f21f1e3209f7482f956c41a98b26391.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/80af453fa51d477f2c43692c302dd1ec1236c42e.png)

---

<div class="post-metadata">

**Author:** ![thijs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thijs/32/13651_2.png) [@thijs](https://community.weweb.io/u/thijs)\
**Post date:** [April 22, 2025, 11:24am UTC](https://community.weweb.io/t/getkeyvalue-lookup/17276/2 "2025-04-22T11:24:27Z")

</div>

Hi @tcc ,

Could your question be redefined into: how to provide a default value in case of a formula error?  
If so, that’s also what I keep struggling with.

Regarding your specific case failing to produce one object as a result: you can best diagnose/fix that in the workflow that you trigger with the button. Perhaps its easier to chop your function into multiple steps (with a combination of returning a result and true/false-split) - so you can run your tests and exactly see where your formula fails.
