How to append 2 attributes?

(Prakhar Monga) #1

I want to make a dynamic attribute which changes every time.
i am having a “counter” attribute and i want to append it to another attribute “item” so that
“item counter” will be a dynamic attribute.
How is it possible?

(Karen Barker) #2

Hi there,

There’s no way to really make a truly dynamic attribute. Each time either of the other attributes are updated you would need to carry out an update to the “item counter” attribute as well.

You can combine attributes when you are setting them by appending both the current attributes as the value field.

(Prakhar Monga) #3

Can i append two attributes like {{att1}}/{{att2}}?
i want to make a new attribute by appending two attributes with ’ / ’ in between.

(Karen Barker) #4

Hi @Prakhar_Monga,

Yes this would be possible but you would need to update the new attribute each time one of the other attributes changes or the value would be out of date.

To do this in the new attributes value field you would just need to reference the path to att1 and att2.