{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/165","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/165/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/165/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/165","id":56078363,"number":165,"title":"Creating Default Entries within a Repeatable Group","user":{"login":"ogdsgn","id":3537556,"avatar_url":"https://avatars.githubusercontent.com/u/3537556?v=3","gravatar_id":"","url":"https://api.github.com/users/ogdsgn","html_url":"https://github.com/ogdsgn","followers_url":"https://api.github.com/users/ogdsgn/followers","following_url":"https://api.github.com/users/ogdsgn/following{/other_user}","gists_url":"https://api.github.com/users/ogdsgn/gists{/gist_id}","starred_url":"https://api.github.com/users/ogdsgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogdsgn/subscriptions","organizations_url":"https://api.github.com/users/ogdsgn/orgs","repos_url":"https://api.github.com/users/ogdsgn/repos","events_url":"https://api.github.com/users/ogdsgn/events{/privacy}","received_events_url":"https://api.github.com/users/ogdsgn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-30T20:05:05Z","updated_at":"2015-01-30T22:24:22Z","closed_at":"2015-01-30T20:30:46Z","body":"Wondering how I would approach creating some default entries within the repeatable group type?\r\n\r\nie. I have a Meta Box \"Meta Group\" with a repeatable group of a text input & text area, and I would like to be able to have a few defaults populated, with the option to create more.\r\n\r\nHere's my code.\r\n\r\n    $meta_boxes['meta_group'] = array(\r\n        'id'           => 'meta_group',\r\n        'title'        => __( 'Meta Group', 'cmb2' ),\r\n        'object_types' => array( 'post', ),\r\n\t\t'closed'       => true,       \r\n        'fields'       => array(\r\n            array(\r\n                'id'          => $prefix . 'meta_group',\r\n                'type'        => 'group',\r\n                'options'     => array(\r\n                    'group_title'   => __( 'Meta Group {#}', 'cmb2' ), \r\n                    'add_button'    => __( 'Add Paragraph', 'cmb2' ),\r\n                    'remove_button' => __( 'Remove Paragraph', 'cmb2' ),\r\n                    'sortable'      => false, // beta\r\n                ),\r\n                'fields'      => array(\r\n                    array(\r\n                        'name' => 'Title',\r\n                        'default' => 'Title ',                        \r\n                        'id'   => 'title',\r\n                        'type' => 'text',\r\n                    ),\r\n                    array(\r\n                        'name' => 'Description',\r\n                        'id'   => 'description',\r\n                        'type' => 'textarea',\r\n                    ),\r\n                ),\r\n            ),\r\n        ),\r\n    ); \r\n\r\nThanks in advance, and Love the plugin. Super awesome!!!\r\n"},"comment":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/comments/72280948","html_url":"https://github.com/WebDevStudios/CMB2/issues/165#issuecomment-72280948","issue_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/165","id":72280948,"user":{"login":"tw2113","id":484075,"avatar_url":"https://avatars.githubusercontent.com/u/484075?v=3","gravatar_id":"","url":"https://api.github.com/users/tw2113","html_url":"https://github.com/tw2113","followers_url":"https://api.github.com/users/tw2113/followers","following_url":"https://api.github.com/users/tw2113/following{/other_user}","gists_url":"https://api.github.com/users/tw2113/gists{/gist_id}","starred_url":"https://api.github.com/users/tw2113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw2113/subscriptions","organizations_url":"https://api.github.com/users/tw2113/orgs","repos_url":"https://api.github.com/users/tw2113/repos","events_url":"https://api.github.com/users/tw2113/events{/privacy}","received_events_url":"https://api.github.com/users/tw2113/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T22:24:22Z","updated_at":"2015-01-30T22:24:22Z","body":"No worries."}}