array('form' => array( 'hidden'=>array(''), 'buttons' => array('EDIT', 'DUPLICATE', 'DELETE', array('customCode'=>'', //Bug#51778: The custom code will be replaced with sugar_html. customCode will be deplicated. 'sugar_html' => array( 'type' => 'input', 'value' => '{$MOD.LBL_TEST_BUTTON_LABEL}', 'htmlOptions' => array( 'type' => '{$ADD_BUTTON_STATE}', 'title' => '{$MOD.LBL_TEST_BUTTON_TITLE}', 'class' => 'button', 'onclick' => 'this.form = document.getElementById(\'formDetailView\'); this.form.return_module.value=\'Campaigns\'; this.form.return_action.value=\'TrackDetailView\';this.form.action.value=\'Schedule\';this.form.mode.value=\'test\';SUGAR.ajaxUI.submitForm(this.form);', 'name' => 'button', 'id' => 'send_test_button', ), ), ), array('customCode'=>'', //Bug#51778: The custom code will be replaced with sugar_html. customCode will be deplicated. 'sugar_html' => array( 'type' => 'input', 'value' => '{$MOD.LBL_QUEUE_BUTTON_LABEL}', 'htmlOptions' => array( 'type' => '{$ADD_BUTTON_STATE}', 'title' => '{$MOD.LBL_QUEUE_BUTTON_TITLE}', 'class' => 'button', 'onclick' => 'this.form.return_module.value=\'Campaigns\'; this.form.return_action.value=\'TrackDetailView\';this.form.action.value=\'Schedule\';SUGAR.ajaxUI.submitForm(this.form);', 'name' => 'button', 'id' => 'send_emails_button', ), ), ), array('customCode'=>'', //Bug#51778: The custom code will be replaced with sugar_html. customCode will be deplicated. 'sugar_html' => array( 'type' => 'submit', 'value' => '{$APP.LBL_MAILMERGE}', 'htmlOptions' => array( 'title' => '{$APP.LBL_MAILMERGE}', 'class' => 'button', 'onclick' => 'this.form.return_module.value=\'Campaigns\'; this.form.return_action.value=\'TrackDetailView\';this.form.action.value=\'MailMerge\';SUGAR.ajaxUI.submitForm(this.form);', 'name' => 'button', 'id' => 'mail_merge_button', ), ), ), array('customCode'=>'', //Bug#51778: The custom code will be replaced with sugar_html. customCode will be deplicated. 'sugar_html' => array( 'type' => 'input', 'value' => '{$MOD.LBL_MARK_AS_SENT}', 'htmlOptions' => array( 'type' => '{$TARGET_BUTTON_STATE}', 'title' => '{$MOD.LBL_MARK_AS_SENT}', 'class' => 'button', 'onclick' => 'this.form.return_module.value=\'Campaigns\'; this.form.return_action.value=\'TrackDetailView\';this.form.action.value=\'DetailView\';this.form.mode.value=\'set_target\';SUGAR.ajaxUI.submitForm(this.form);', 'name' => 'button', 'id' => 'mark_as_sent_button', ), ), ), array('customCode'=>''), ), 'links' => array('', '', '', ), ), 'maxColumns' => '2', 'widths' => array( array('label' => '10', 'field' => '30'), array('label' => '10', 'field' => '30') ), ), 'panels' =>array ( 'lbl_campaign_information'=> array( array ( 'name', array ( 'name' => 'status', 'label' => 'LBL_CAMPAIGN_STATUS', ), ), array ( array ( 'name' => 'start_date', 'label' => 'LBL_CAMPAIGN_START_DATE', ), 'campaign_type', ), array ( array ( 'name' => 'end_date', 'label' => 'LBL_CAMPAIGN_END_DATE', ), array( 'name' => 'frequency', 'customCode' => '{if $fields.campaign_type.value == "NewsLetter"}