Error building SVG

Hi guys,

I am trying to build a dynamic SVG with a concatenate, this works:

Screen Shot 2022-09-27 at 9.40.15 PM.png

 

But this does not:

 

CONCATENATE("data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 420'><rect x='10' y='10' width='220' height='20' stroke='white' stroke-width='1' fill='none'/></svg>")

 

Screen Shot 2022-09-27 at 9.43.30 PM.png

 

Solved Solved
0 8 571
1 ACCEPTED SOLUTION

Ahh!! You are right! I remember this but when dealing with a Webhook JSON body, that's why I didn't make the relation to it. 

Try adding a space after the apostrophe:

CONCATENATE(
 "data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 420'><rect x=' ",
 [etiqueta_x],
 "' y=' ",
 [etiqueta_y],
 "' width='220' height='20' stroke='white' stroke-width='1' fill='none'/></svg>"
)

View solution in original post

8 REPLIES 8
Top Labels in this Space