Width
Specifies the number of columns a field should span.
Examples
Copy
var myBlock = CRM.GetBlock("CompanyBoxShort");
myEntryBlock = myBlock.GetEntry("comp_type");
myEntryBlock.Height = "2";
myEntryBlock.Width = "4";
Sets the width of the comp_type field to four columns. This code generates HTML similar to the following:
Copy
<td colspan="4" valign="TOP" rowspan="2">
<span id="_Captcomp_type" class="VIEWBOXCAPTION">
Type:
</span>
<br>
<span id="_Datacomp_type" class="VIEWBOX style='WIDTH:100px;'>
Prospect
</span>
</td>