#Replacement for variables in bindings

1 messages · Page 1 of 1 (latest)

pulsar marlin
#

Im trying to do something like this:

"$text|default": "#text",
"variables": {
  "requires": "((#text - 'hello') = #text)",
  "$text": "#text2"
}

but obviously bindings dont work in variables. Is there any workaroaund?

tropic galleon
#

life could be a drean

#

drean yes

pulsar marlin
tropic galleon
#

you cannot use #bindings in variables/requires

#

if you want to show something condictionally use method lets call it

#

show/hide

#

show element1 if #text = something

#

show element2 if #text = something_but_idk

#
                              {
                                "binding_type": "view",
                                "source_property_name": "(#text_value = 'idk')",
                                "target_property_name": "#visible"
                              }```
#

put this is bindings: [{here}]

pulsar marlin
spare viper