Skip to content

Old trick doesn't work #9

@kud

Description

@kud

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions