Hello everyone, I need help with my repeater.
What i need is :
In each container of this repeater, I have 1 checkbox, and when you check one of the boxes, the others automatically uncheck.
If anyone can help me with a code example, I’m really new to coding.
Have a good day.
Hello,
You will need to use event handlers and check() to see if one of the checkboxes in a repeater is checked. You can also disable() all the other checkboxes if one of them was already checked.
Here you can find a related forum post with a code snippet that might be useful.
Check out the relevant API references:
Checkbox
Repeater
onItemReady
Good luck!
Hello @anastasiias , thank you for your reply,
But I still can’t figure it out, the example you gave me concerns limited normal checkboxes, but in my case I have a repeater connected to the database, with only one checkbox in each container.
See this example which will show you want you need to do:
Input Components in Repeater
Use input components in a repeater, and apply inline and global actions to repeater content.
Hi @yisrael-wix , I will fight with that, thank you.