• Resolved textfriseur

    (@textfriseur)


    Hello,
    I would like to preselect multiple options in a checkbox field. Even though the user can select multiple options in that field, it is not possible to preselect multiple options (it looks like a radio field: I can only preselect one of the options).
    Am I missing something?
    As a workarround I have created multiple single option checkbox-fields. But it gets a bit messy…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor christiechirinos

    (@christiechirinos)

    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 );

    ?>

    Thread Starter textfriseur

    (@textfriseur)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘preselect multiple options in checkbox field’ is closed to new replies.