Pricing Blog

How can I use a variable value for element background URL?

  • tom_tom_tom54-1259593973564051478

    tom

    1 year ago

    How can I use a variable value for element background URL?
    1
  • tom_tom_tom54-1259891357766516958

    tom

    1 year ago

    Okay, I found a way using custom CSS, using a onload event and replacing the URL value in the CSS with a value from the variable. But it does seem like awful lot of work 🥹
  • Tod-1259891359347638303

    Tod

    1 year ago

    Great energy @tom! Your continuous contribution to the toddle Community just made you advance to Community Level 2!
  • erikbeus-1260140261674323978

    Erik Beuschau

    1 year ago

    You could also use a style attribute on your element. Formula support on background url is on our list of priorities atm 👍
    👍1
  • harrisbones-1372299297147715636

    harrisbones

    3 months ago

    +1, I wanted to do this today