• Resolved 37

    (@mikegandy)


    The multi-select fields are kind of confusing, especially to those with disabilities. I would like to change them to checkboxes if possible. Specifically looking at the MailChimp extension Groups field. Since there is no option to change these to checkboxes, is this possible any other way? A php filter perhaps?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mikegandy

    You can delete the plugin from the Form Builder and then recreate it with a select field with the options. To delete the custom field, just open the field builder > see the “Custom fields” section in the overlay and you will see the “x” button for the delete field.

    Regards,

    Hi @mikegandy

    You can delete the plugin from the Form Builder and then recreate it with a select field with the options. To delete the custom field, just open the field builder > see the “Custom fields” section in the overlay and you will see the “x” button for the delete field.

    Regards,

    Is there another way to change a field type? By using this method, the field gets deleted from the database too not just the plugin. I wish to keep the data that are already there, but I wish to use the new format for the future entries.
    Thanks!

    Thread Starter 37

    (@mikegandy)

    Thank you, Champ, but that will not help in my situation. I understand that I can use a different field type for custom fields, but the MailChimp extension group field not something that I create. It is already set up as a multi-select by default and I have no choice but to use that field type. I want to change it checkboxes, though. Wondering if there is a workaround. Like a filter that will allow me to override the field type and recreate it as checkboxes.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mikegandy @chrisco75

    Which forms does this select/multi-select added which you want to change the field type to the checkbox?

    Regards.

    Thread Starter 37

    (@mikegandy)

    @champsupertramp, for me I’m using it on my default registration form.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mikegandy @chrisco75

    Sorry for the late response.

    You can try this code snippet to change the select/multi-select to checkbox field type:

    add_filter('um_get_field__alphabet', function( $data ){
    
        $data['type'] = 'checkbox';
        
        return $data;
    });

    Change the meta key alphabet to your field key.

    Feel free to re-open this thread if there’s any question that may come up. Just change the topic status to “Not Resolved” so that we can get back to you.

    Regards,

    Hi @champsupertramp,

    Sorry for the delay, I got sidetracked by other projects. I was wondering here I should put this piece a code, in function.php? Also I’m trying to convert a text field to a select dropbox; is the right data type is ‘select’ or it should be something else?

    Thank you!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @chrisco75

    You can add it to your theme’s functions.php file or use the Code Snippets plugin to run the code.

    Regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can I change multi select fields to checkboxes?’ is closed to new replies.