felixarntz / bootstrap-for-contact-form-7

This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
https://wordpress.org/plugins/bootstrap-for-contact-form-7/
GNU General Public License v2.0
24 stars 18 forks source link

Checkbox default value / preselect #34

Closed JagBlack closed 7 years ago

JagBlack commented 8 years ago

Hello, really a nice plugin to get contact form 7 working for bootstrap. But there is onething I didn't get to work. I wanted to create an preselected checkbox as descriped in the original plugin:

[checkbox nl default:1]my choice[/checkbox]

I'm not sure if the functionality is not supported or I'm just to stupid.

Thanks for the help in advance, JagBlack.

felixarntz commented 7 years ago

Hello JagBlack,

the problem is that you didn't specify values for the checkbox. Even if you only provide a single checkbox, it needs to have an option in order to use the default setting. For example:

[checkbox nl default:1 "whatever value"]my choice[/checkbox]