Hi there,
This is a feature of the latest release of Caldera Forms (1.6). You should update to the latest version: https://calderaforms.com/2018/03/caldera-forms-1-6-is-here/
Hope this helps!
Hi Christie,
I am also in need of this feature and created a plugin using the following code from the link but it doesn’t seem to work.
Appreciate your advice please? thanks.
Regards.
————————–
<?php
/*
* Plugin Name: Testing
*/
/**
* Set a Caldera Forms checkbox field to have mutltiple defaults selected
*
* Requires: Caldera Forms 1.6 or later
*
* Important: This only works with checkbox fields
*/
add_filter( ‘caldera_forms_render_get_field’, function( $field, $form ){
if( ‘fld_9641225’ === $field[ ‘ID’ ] ){
$field[ ‘config’ ][ ‘default’ ] = array(
‘Yes’, ‘No’
);
}
return $field;
}, 10, 2 );
?>
Hi Christie,
and thanks for your answer!
I am actually working with the latest (free) Version of Caldera. I have just updated to 1.6.1.1. But I am still not able to select more than one field.
To clarify: I want to select multiple Options (its called “default”) within one checkbox field. However, the fields I can select within the Layout Builder have the round version (like a radio field), so it is only possible to pre-check one of the fields at a time.
In the finished form I get the normal square selecters and can select multiple options at once. It is just not possible to have multiple options preselected.
Thanks a lot!