Hello, there are 2 easy ways to do it:
Widget: Image changer
Create 2 image (one for state on, one for state off)
Insert widget: iq-image-changer
Open "Config" of widget
Goto section "DATA Attributes" & select Option 1
In field Item select the variable representing the state
In field Options press "+" to add as many options/images you need
Enable "Icon source" and select the 1st image by uploading it to WebIQ workspace. Use the red marked button. Here you select your icon from somewhere on the HD and it is automatically copied into the workspace. You use the button with "..." when the image is yet copied into the workspace.
Repeat previous step for 2nd state
Changing background color See: Change-the-color-of-an-item-according-to-a-value
HINT: As discussed by the Reply above, WebIQ is totally different than e.g. WinStudio. Therefor you should take some time to view the videos provided on https://www.smart-hmi.com/ and the HOW TO area of this forum. How-to-videos-blogs-and-examples-for-ctrlX
... View more