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
