I have an old form I am converting to the way Dolphin does forms, below is my code:
$aForm = array(
'form_attrs' => array(
'name' => 'form_partnership',
'method' => 'post',
),
'params' => array (
'db' => array(
'table' => 'partnership',
'key' => 'partnership_id',
'uri' => '',
'uri_title' => '',
'submit_name' => 'submit_partnership_form',
),
'csrf' => array(
'disable' => true,
)
),
'inputs' => array(
'header1' => array(
'caption' => _t("_Partnership"),
'type' => 'block_header',
),
'PartnershipAgree' => array(
'type' => 'radio_set',
'name' => 'PartnershipAgree',
'db' => array (
'pass' => 'Xss',
),
'caption' => _t("Are you willing to fill this out with another individual?"),
'values' => array (
'Yes' =>'Yes',
'No' => 'No',
),
),
'Partner' => array(
'type' => 'text',
'name' => 'Partner',
'db' => array (
'pass' => 'Xss',
),
'caption' => _t("Partner Name"),
),
'PartnershipRelationship' => array(
'type' => 'text',
'name' => 'PartnershipRelationship',
'db' => array (
'pass' => 'Xss',
),
'caption' => _t("Partner Relationship"),
),
'header1_end' => array(
'type' => 'block_end'
),
'submit_send' => array(
'type' => 'submit',
'colspan' => true,
'name' => 'submit_partnership_form',
'value' => _t("Send"),
),
),
);
$oForm = new BxTemplFormView ($aForm);
$oForm->initChecker();
if ($oForm->isSubmittedAndValid ()) {
// add additional vars to database, in this case creation date field is added
$aValsAdd = array (
);
if ($oForm->insert ($aValsAdd)) {
$sStatusText = 'Message Successfully Sent. We will contact you soon, but will not leave a phone message.';
} else {
$sStatusText = 'Message Not Sent';
}
}
if($sStatusText)
$sStatusText = MsgBox(_t($sStatusText), 3);
return array($sStatusText . $oForm->getCode(), array(), array(), false);
But for some reason, my text is just going on and on to the right and not wrapping to the next line
Any help would be greatly appreciated. I have attached an image of what I am getting, the top form is the old form, and the bottom form is the new one using the Dolphin template.