Back to All

Passing custom variables values in attributes

Hi,

I'm trying to set an attribute with the value of a custom variable, but it doesn't work. I'm using the following syntax:

[setAttribute attr=[showVar=var]]

But when I try to display my attribute value, I get:

[showVar=var

I really have to use attributes because I want to send them to an API (using JSON API interaction). I think there is a bug when the expression [showVar=var] is evaluated. In fact, the ']' just after 'var' looks like it is interpreted as the closing ] corresponding to the '[' just before 'setAttribute'.

Is it possible to fix it? Or do you know any working workaround?