Can you use an attribute in another attribute's expression?

I have this setup for a lightbox to open on click of a < a > tag:

<a> tag with these attributes:

  1. ID: lrg_img, Use As: Image, Control Type: None (Use with Expressions)
  2. ID: link_img, Use As: Attribute, Element attribute:href, Control Type:None (Use with Expressions), Expression: {{lrg_img}}

I’m expecting the href to be set to the URL of the image but it comes out blank. Is what I’m trying to do possible or is this another bug?

I figured this out with a random guess. I made the expression: {{lrg_img.url}}. It would be awesome if this information could be added to the Expression and Image sections of the official documentation page.

1 Like