I want to use the Level shape data but set the value depending on the value of a session variable, which doesn't look to work as soon as I make it dynamic
I have a card variable that it's value changes depending on other buttons pressed on the page, and want other shapes have their shape data Level value change between 4 and 5 depending on the value set.
Here's an example of what I'm using in the shape data to set the value, which does work correctly when just placing it in text on the page to confirm what's returned.
[RegexReplace:This,[RegexReplace:(That|Other),[cardvar:test],4],5]Alberto De Luca [DevOps Enabler] Edited comment
Hi there Phil – hope you're fine
If I understand correctly, the fact that it works “in text” but not in "Level" could depend on the final resolved value not ending up as a pure numeric string in all cases
Level supports placeholders and dynamic values.
But I believe that the final resolved output must be exactly a number.
Some further testing may show if RegexReplace is positional (pattern,replacement,input), or conditional-expression style.
Far from a full answer and haven't tried this myself but this question lit up the road signs to the memory lane of the "mimics" activities in CRT ^^ (I'm sure you remember) so I took the occasion to say "hi" (;