lundi 17 septembre 2018

Make Contact form 7 checkbox required without using Acceptance Checkbox

I want to use custom styled checkbox and checkmark with Contact form 7 plugin, but "required" html attribute doesn't seem to work with this plugin.

My code looks like this at the moment:

<input class="form__checkbox-input" type="checkbox" name="privaatsuspoliitika" id="the-terms" required>

Is it possible to make it required without using acceptance checkbox/default checkbox? I don't want plugin to generate checkbox html for me since it also adds span and label tags (it makes my custom checkbox not work) and I don't think there is an option to just add input with type of checkbox :/.




Aucun commentaire:

Enregistrer un commentaire