# How to bypass errors in formulas?

**URL:** <https://community.weweb.io/t/how-to-bypass-errors-in-formulas/14492>\
**Category:** Ask us anything\
**Created:** [November 12, 2024, 2:58pm UTC](https://community.weweb.io/t/how-to-bypass-errors-in-formulas/14492 "2024-11-12T14:58:37Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [November 12, 2024, 2:58pm UTC](https://community.weweb.io/t/how-to-bypass-errors-in-formulas/14492/1 "2024-11-12T14:58:37Z")

</div>

Hi,

Is there a formula to bypass an error? Something similar to the ‘IFERROR’-formula in Excel → =IFERROR(value,value\_if\_error).

Background: I want my webapp to be flexible without input controls - which may occassionally cause an issue when fields were left empty, e.g. where a dynamic text shows “this is some text” (no matter if I first made the static text something else prior to binding).

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

Thanks!  
Thijs

---

<div class="post-metadata">

**Author:** ![what.gift](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/what.gift/32/8069_2.png) [@what.gift](https://community.weweb.io/u/what.gift)\
**Post date:** [November 12, 2024, 11:16pm UTC](https://community.weweb.io/t/how-to-bypass-errors-in-formulas/14492/2 "2024-11-12T23:16:51Z")

</div>

You just need to wrap it in a IF statement and return null if it’s false/errors.

ChatGPT will write this for you if you’re unsure. You can paste in what you have, but you need to ask chatGPT to keep the same syntax as it’s a weweb UI formula rather than JS.

ChatGPT + CustomJS is very powerful when you need it. I’m flying on weweb with this supercombo! You just have to share the variable ID’s which you’ll see when you copy/paste the standard formula.
