enable conditions don't work on button

  • 1
  • Question
  • Updated 3 years ago
I have a button that has an enable condition based on a UI only field that has a default value of false.  When the page initially loads the button is enabled when it should be disabled.  If I switch the action type on the button to a different action type(multiple actions).  Then the enable conditions works fine.

What gives?
Photo of Jaime

Jaime

  • 1,220 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Jaime,

There's a chance your ui-only field is defaulting to null/undefined instead of false.

Try changing your enable condition to !=true instead of =false.
Photo of Jaime

Jaime

  • 1,220 Points 1k badge 2x thumb
Matt...

I tried that and same result.

In the console I see...

>skuid.$M('Opportunity').data[0].IsValid
<false

So it would appear that it has a value of false.  Again....If I use a button of action type Run Multiple Actions it works just fine.