{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/412","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/412/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/412/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/412","id":98646600,"number":412,"title":"Sortable arrows not working + Edit custom option at select type","user":{"login":"maxisot","id":13615991,"avatar_url":"https://avatars.githubusercontent.com/u/13615991?v=3","gravatar_id":"","url":"https://api.github.com/users/maxisot","html_url":"https://github.com/maxisot","followers_url":"https://api.github.com/users/maxisot/followers","following_url":"https://api.github.com/users/maxisot/following{/other_user}","gists_url":"https://api.github.com/users/maxisot/gists{/gist_id}","starred_url":"https://api.github.com/users/maxisot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxisot/subscriptions","organizations_url":"https://api.github.com/users/maxisot/orgs","repos_url":"https://api.github.com/users/maxisot/repos","events_url":"https://api.github.com/users/maxisot/events{/privacy}","received_events_url":"https://api.github.com/users/maxisot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-02T23:56:30Z","updated_at":"2015-08-03T00:01:58Z","closed_at":null,"body":"Hi I have the following code using Group fields .\r\n\r\nSortable arrows are not working\r\n\r\n```\r\nadd_action( 'cmb2_init', 'videos' );\r\n/**\r\n * Hook in and add a metabox to demonstrate repeatable grouped fields\r\n */\r\nfunction videos() {\r\n\t// Start with an underscore to hide fields from custom fields list\r\n\t$prefix = '_video_';\r\n\t/**\r\n\t * Repeatable Field Groups\r\n\t */\r\n\t$cmb_group = new_cmb2_box( array(\r\n\t\t'id'           =>  'video',\r\n\t\t'title'        => __( 'Videos', 'cmb2' ),\r\n\t\t'object_types' => array( 'videos', ),\r\n\t) );\r\n\t// $group_field_id is the field id string, so in this case: $prefix . 'demo'\r\n\t$group_field_id = $cmb_group->add_field( array(\r\n\t\t'id'          =>  'videos',\r\n\t\t'type'        => 'group',\r\n\t\t'description' => __( '', 'cmb2' ),\r\n\t\t'options'     => array(\r\n\t\t\t'group_title'   => __( 'Video {#}', 'cmb2' ), // {#} gets replaced by row number\r\n\t\t\t'add_button'    => __( 'Add Another Video', 'cmb2' ),\r\n\t\t\t'remove_button' => __( 'Remove Video', 'cmb2' ),\r\n                    \t'sortable'      => true, // beta\r\n\t\t\t// 'closed'     => true, // true to have the groups closed by default\r\n\t\t),\r\n\t) );\r\n\t/**\r\n\t * Group fields works the same, except ids only need\r\n\t * to be unique to the group. Prefix is not needed.\r\n\t *\r\n\t * The parent field's id needs to be passed as the first argument.\r\n\t */\r\n        $cmb_group->add_group_field( $group_field_id, array(\r\n            'name'             => 'Video Type',\r\n            'id'               => 'vtype',\r\n            'type'             => 'select',\r\n            'show_option_none' => true,\r\n            'default'          => 'false',\r\n            'options'          => array(\r\n                'news' => __( 'News', 'cmb' ),\r\n                'updates'   => __( 'Updates', 'cmb' ),\r\n                'sports'     => __( 'Sports', 'cmb' ),\r\n                'style'     => __( 'Style', 'cmb' ),\r\n                'interviews'     => __( 'Interviews', 'cmb' ),\r\n            ),\r\n        ) );\r\n\t$cmb_group->add_group_field( $group_field_id, array(\r\n            'name'    => 'Custom Video Type',\r\n            'id'      => 'vctype',\r\n            'type'    => 'text',\r\n        ) );\r\n\t$cmb_group->add_group_field( $group_field_id, array(\r\n            'name'             => 'Video Quality',\r\n            'id'               => 'vquality',\r\n            'type'             => 'select',\r\n            'show_option_none' => true,\r\n            'default'          => 'false',\r\n            'options'          => array(\r\n                 'hq'   => __( 'HQ', 'cmb' ),\r\n                'hd'     => __( 'HD', 'cmb' ),\r\n            ),\r\n        ) );\r\n\t$cmb_group->add_group_field( $group_field_id, array(\r\n\t    'name' => 'Video Code',\r\n            'id' => 'vcode',\r\n            'type' => 'textarea_small'\r\n        ) );\r\n}\r\n\r\n```\r\nAlso is it possible n the first group field (Video Type) to add an option so I can add new choice as a text  \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/comments/127085687","html_url":"https://github.com/WebDevStudios/CMB2/issues/412#issuecomment-127085687","issue_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/412","id":127085687,"user":{"login":"maxisot","id":13615991,"avatar_url":"https://avatars.githubusercontent.com/u/13615991?v=3","gravatar_id":"","url":"https://api.github.com/users/maxisot","html_url":"https://github.com/maxisot","followers_url":"https://api.github.com/users/maxisot/followers","following_url":"https://api.github.com/users/maxisot/following{/other_user}","gists_url":"https://api.github.com/users/maxisot/gists{/gist_id}","starred_url":"https://api.github.com/users/maxisot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxisot/subscriptions","organizations_url":"https://api.github.com/users/maxisot/orgs","repos_url":"https://api.github.com/users/maxisot/repos","events_url":"https://api.github.com/users/maxisot/events{/privacy}","received_events_url":"https://api.github.com/users/maxisot/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T00:01:58Z","updated_at":"2015-08-03T00:01:58Z","body":"Also what is the proper way to echo repeatable fields?\r\n\r\nThanks"}}