Is it possible to activate an item in a database?

For example, I have a repeater with images that the user sent to put the background in the site, is it possible to choose which among them will be activated and displayed at the bottom of the screen?

Currently and chose which is the background image based on the last updated, with a button to activate and deactivate, it does not matter if it is active or not the button what it even imports is if it was changed, if it was changed that item and updated and displayed as background.

Is there another way to do this?

Hi Vortex Club,

If I understood correctly, you have a repeater that is connected to a database with user uploaded images and you want to give clicking functionality to these images so that it will change the background.
If that is so, you can use a simple forEachItem on your repeater that adds an onClick event to the repeated images that changes the background.
For example:

   $w("#repeater1").forEachItem(($item, itemData, index) => {
        $item("#image1").onClick(() => {
            $w("Document").background.src = $item("#image1").src

If that is not what you meant please elaborate in greater detail so I can help you

All the best!

  • Lior