Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927
Overrides the default width of a control and specifies how wide it will be displayed in the form.
Remarks
width
is optional but available for all controls.
Takes only integer values of em units, with a required space between the value and the unit:
width="
integer
em"
.
If you set an explicit width on a control inside a table control's row template, you are overriding the default width of the entire column that the control will be displayed in.
Figure 264. The width
declared for any of the controls in a row
control sets the display width for the column
Sample
<form id='widthSample' menuName='Declaring width' platforms='web' xmlns='http://schemas.mobilengine.com/fls/v1'> <textbox label='No width declared' text='Grumpy wizards make toxic brew for the evil queen and Jack.' lines='3'/> <textbox label='width is 20 em' width='20 em' text='Grumpy wizards make toxic brew for the evil queen and Jack.' lines='2'/> </form>
The same input rendered in a default-width textbox, and a textbox with an explicitly set
width
Because none of the controls in the form above has an identifier, a workflow script running in the Mobilengine Cloud would only be able to access the metadata of its submission.