Problem with disable button or formula?

Hi, In my case I can’t figure out whether the Disable button feature isn’t working due to my lack of understanding how the feature works, or if my formula is incorrect? Because I cant find any documentation on the button element, its tough to know where my problem actually is. Any help would be greatly appreciated, thanks!

Hi @mark!

“Disabled: On” means that now the button is disabled. Unfortunately, you cannot bind the disabled status to a state as you are trying to do. You need to bind the condition to the Disabled prop directly.

Hope this helps.

2 Likes

I was about to suggest the same. :slight_smile:

It’s funny how no one of the commenters really thought twice about this, and even copilot got you wrong, good observations about the binding though.

Instead of the ifEmpty, since you can’t bind it in one place, i suggest a more sustainable approach:

  1. Create a formula

  1. Bind the formula both to the state and the Settings → Disabled


  1. Enjoy the fruits of your hard work


For the future, I’d suggest using a more dynamic approach, especially if you have many forms like this, repeating the formula, or even the logic might be redundant. I’m always down to talk about stuff like this e.g. best practices, I have a link in my bio if you’re interested :slight_smile:

2 Likes

To be honest, I didn’t check the formula, because I saw that mark wanted to bind it to a state and that’s not possible. Nice catch :wink:

Thanks! This is perfect. I definitely need to start using Formulas more often. I think they are the 1 thing I’m not utilizing enough.