I’m trying to save the value of a checked chebox, and it’s returning the error as shown in the image.
Hey Valtenci,
Checkboxes need some attention on server-side handling because they don’t have a value unless they are checked…
Check that and if you need help ask here:
even with everything marked = 1, the error occurs
Maybe you just post here your checkbox code and your server action handling screenshot in order to check it…
Also check this here:
thanks again my friend
I solved it by putting this in the server action.
and passing its value as 1
this way if it is checked, the value = 1, if not the value = 0
1 Like