Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for 'required' attribute #23

Open
cliffordp opened this issue May 21, 2015 · 0 comments
Open

add support for 'required' attribute #23

cliffordp opened this issue May 21, 2015 · 0 comments

Comments

@cliffordp
Copy link

Adding the 'required' attribute doesn't affect this field. :(

    // Event Coordinates
    $bo_open->add_field( array(
        'name' => __('Event Mapping Location', 'bo_cmb2' ),
        'desc' => __('Regardless of the number of properties, pick a spot on the map to represent the "center" of your event)', 'bo_cmb2' ),
        'id' => $prefix . 'location',
        'type' => 'pw_map', //only does lat+long, per https://github.com/mustardBees/cmb_field_map/issues/22
        'split_values' => true, // Save latitude and longitude as two separate fields
        'attributes'  => array(
            'required'    => 'required',
        ),
    ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant