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.
Hello,
Be warned, the old trick where you have:
doesn't work anymore, because it makes an array.
I find this solution:
but maybe it could be good to have data-attr to handle that.