Button on/off : change background image.... i still don't get it

Hello,

I'm ok with changing button's color following its value.
I'm ok with getting an image as a button's background.
I've read different topics about this subject, too (changing background).

But i still don't manage to get it working.

I have a button, with this in the css field:

{
#{@{this}==1 ? 
     "background:url(E:\Images\OSC\Outil_Ciseaux_On.png)"
          : "background:url(E:\Images\OSC\Outil_Ciseaux_Off.png)"
}

But nothing happens... I've noticed some changes from what i may have read on this forum, i mean i use background instead of background-image on purpose. Here i tried both expressions, with ", with ', with (), with {}...

And... still nothing...

Any solution ?

Thank you

The syntax looks off (missing closing bracket and/or context), did you paste the full content of the css field ?
I recommend using relative paths instead of absolute paths, for example, put the Images folder in the same directory as your session file and write the paths like this: Images/.../filename.png"

Oh... i got it.... } missing... Let's use relative paths now !

OSC is greeeeeaaaaaaat, with so many things to learn :slight_smile:

Thank you d'être aussi réactif !