Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Dynamically populate multi-select? #88

Open
rpelletierrefocus opened this issue Feb 4, 2020 · 1 comment
Open

Dynamically populate multi-select? #88

rpelletierrefocus opened this issue Feb 4, 2020 · 1 comment

Comments

@rpelletierrefocus
Copy link

I am not even sure if this is going to be possible, but I would like to dynamically populate a multi select option. The get_race_simple function create a multi-dimensional array which shows up fine in the admin panel, but it wont save anything I select.

            'title'					=> __( 'Map Settings', 'bpc-elections' ),
            'description'			=> __( '<p></p>', 'bpc-elections' ),
            'fields'				=> array(
                array(
                    'id' 			=> 'racemap_selections',
                    'label'			=> __( 'Map Topper', 'bpc-elections' ),
                    'description'	=> __( 'Choose which question are available in the race map.', 'bpc-elections' ),
                    'type'			=> 'checkbox_multi',
                    'options'		=> get_races_simple(),
                )
            )
        );
@jonathanbossenger
Copy link
Collaborator

Hmmmm interesting. I will try and take a look at this over the weekend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants