I tried coding something that seems to be very simple but I'm not a good coder so I can't get it to work. Someone with experience might be able to solve it easely.
This is what my page looks like.
This is the code that goes with the page
And here is the dataset that is linked to the custom form (there are later going to be multiple pictures, there is only one now for simplicty)
Customer 1 clicked the checkbox normally and sumbitted.
Customer 2 clicked on the image (checkbox appears to be checked) and submitted.
The database in customer 2 doesn't show the checkmark. Why is that?
I want the database to show the tickmark even when clicking the picture.
Because later I want to hide the checkbox and let customers select a product via clicking the picture.
I tried to find a solution everywhere and can't seem to find it.
Thanks for your help.