To set the checkbox default, set the 'std' item to true or 1.
Now uses the checked() function, per #139 request.
Merge pull request #96 from joehoyle/patch-1
Support for setting the 'multiple' property.
Merge pull request #98 from joehoyle/master
Allow setting 'multiple'
Sanitizing colorpickers so as to not give Farbtastic agita.
Merge pull request #131 from zamoose/master
Patch for Farbtastic colorpicker
Simplifying/condensing sanitizing code based on feedback from @GaryJones
Merge pull request #133 from zamoose/master
Condensing of sanitizing code as per @GaryJones
Add std ability to select type
the select type was missing the ability to set default options, so I
Merge pull request #134 from jtsternberg/master
Please consider adding the 'std' ability to the select type.
Use checked() and add ability to default checkbox on
To set the checkbox default, set the 'std' item to true or 1
Merge branch 'master' into trunk
Fixed logic typo
Fixed logic once more, added filter for checkbox validation
No really, I've got it working this time. Now you can set a default
"checked" status, and you can accurately test whether it's on or off
this doesn't result in the checkbox being checked by default
'name' => 'Dsiplay on map',
'desc' => 'check to display this location on the global map',
'id' => $prefix . 'displayonmap',
'std' => true,
'type' => 'checkbox',
@pdewouters Did you add the filter for cmb_validate_checkbox? It doesn't work without that filter.
no. which filter?
The one shown in my last commit: JPry@e846930
thanks, for some reason I thought the code had been added to the core class
thanks for this default checked solution
If this is still an issue post-1.0.0, feel free to submit another PR against the trunk branch.
This not working for me. Did something changed?