Binding on a Numeric Entry props.enabled only work in designer, not the URL

I am trying to bind the props.enabled of a numeric entry to the value of a dropdown so that when a value is selected in the dropdown the numeric entry will allow a value to be put into it. I have tried multiple different bindings (property with an expression, property with a script, expression, and a change script). When I test it in the designer in run mode it works, but anytime I try it on the URL it will not change the state / make enabled true.

Expression binding: !isNull({../DropdownPlug1.props.value}) && toString({../DropdownPlug1.props.value}) != ''

Property binding with expression: if({value} = null, false, if({value} = '', false, true))

Change Script on dropdown:

if currentValue in (None, '', 0, '0'):

    self.getSibling("NumEntryPlug1").props.enabled = False

else:

    self.getSibling("NumEntryPlug1").props.enabled = True

Property binding with script:

if value == None or value == '':

    return False

else:

    return True

Not sure what is your setup, or version, but this work for me, as an expression

toStr({../DropdownPlug1.props.value}, '') != ''

1 Like

It is doing the same thing, work good in preview mode but when I launch it using the URL it does not work, I am running 8.1.45

I figured it out; I had a binding on the dropdown name. After removing that it works.