How to handle Iferror, undefined, First parameter must be an object or condition fail

I have a button with disable formula in it. This formula is checking arrays and object values to decide button state.buttons are usually enabled and we need a true condition to make it disabled. Sometimes I get output as undefined/ First parameter must be an object/ errors, If any of these happens I want the button to be disabled but the button is enabled.

How others are handling this situation.
Or Weweb team shall add option to select default as enabled/disabled

Could you send an example? Undefined should indeed act as false.

Not sure exactly which problem you have, but sometimes I tend to manually add the ‘?’ symbol to ensure object is not null before checking its values.

OBJECT?.verified which checks if the user is null before checking the verified value.

Hi all,

I have a similar issue, but some more elaborate answer would be highly appreciated!

I created an action list with a text displaying the number of outstanding actions. The numbers are obtained from a collection (Xano in this case sends an array of categories for which outstanding items have been found - and does NOT include categories without outstanding items).

I have a formula that searches for the number based on its category value (1 - 9). But the problem I have is when the formula (in the menu where to bind the text) does not find the category (in my example category 1), it errors - so how do I handle this error to provide an alternative text (like “all actions resolved”) ?

Thank you!
Thijs

image

image

image