-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Labels
Description
Hello,
Be warned, the old trick where you have:
<input name="cgv" value="false" autocomplete="off" type="hidden">
<input name="cgv" value="true" autocomplete="off" type="checkbox">
doesn't work anymore, because it makes an array.
I find this solution:
formData = $form.serializeObject()
if ( typeof formData.cgv === 'undefined' ) formData.cgv = false
but maybe it could be good to have data-attr to handle that.