Hello,
I was wondering if anyone knows a way to modify the editcontrol settings before the page is display. I have a a field setup as a checkbox horizontal layout. I need to add an extra input text after the checkboxes but what I'm doing isn't working. the reason why I want to modify the editcontrol and try to append the input box is because if I do it in the visual editor next to the field the input box will appear below the checkboxes, I need the input box to appear next to the checkbox in horizontal layout. Here is the code I'm using but it's not working.
The input box is appearing below the checkbox which I don't need, is there anyway to make the input box appear next to the checkboxes?.
Thanks in advance.
Attached is a screenshot of how it looks

$diag_field = $xt->fetchVar("diagnosis_editcontrol");
$diag_field .= '<INPUT id=diag style="WIDTH: 25px" maxLength=2 name=diag>';
$xt->assignbyref("diagnosis_editcontrol",$diag_field);
The reason why it shows below the checkbox is because the checkboxes are enclosed in a <div> then the div closes right after the checkboxes end. after that the input box is appended which doesn't work for me