var paletteView = this;
var url = CRM.url('civicrm/admin/custom/group', 'action=add&reset=1');
// Create custom field set and automatically go to next step (create fields) after save button is clicked.
CRM.loadForm(url, {refreshAction: ['next']})
.on('crmFormSuccess', function(e, data) {
// When form switches to create custom field context, modify button behavior to only continue for "save and new"
var paletteView = this;
var url = CRM.url('civicrm/admin/custom/group', 'action=add&reset=1');
// Create custom field set and automatically go to next step (create fields) after save button is clicked.
CRM.loadForm(url, {refreshAction: ['next']})
.on('crmFormSuccess', function(e, data) {
// When form switches to create custom field context, modify button behavior to only continue for "save and new"