#JSON UI Dynamic Text Binding

1 messages · Page 1 of 1 (latest)

short panther
#

How do I get a different value for object values depending on a text value?

#

JSON UI Dynamic Text Binding

limpid wigeon
#

explain a bit more pls

short panther
#

I want to condition a text so that if value = “§4”, it will assign the value “Option 1”, but if value isn’t “§4” and instead equals “§5”, it will assign the value “Option 2”

#

Basically like viewing a custom form that has a specific title, but it wouldn’t be a view binding; It’d be a string value binding.

#

Would I use binding name override?

limpid wigeon
#

You can do this -

"binding_type": "view",
"source_property_name": "((':' + (#value = '§4') + 'Option 1') - ':falseOption 1' - ':true')",
"target_property_name": "#something"
#

Same for §5

#

Or you could do this with string multiplication

short panther
#

You are awesome. Thank you for your help. Remember what Jesus did for you and I.

limpid wigeon
#

I'm not Christian

#

But anyways, you're welcome :)