Skip to content

Change field size

By default, input fields expand to 100% of the available width. Using the new size function we adjust the width for example for (short) numbers.

Note

Please note that this function applies to <input /> fields, only, not to complex fields or combinations of controls.

Standard

Code

1
2
3
// file: hooks/TABLENAME-dv.js
var dv = AppGiniHelper.DV;
dv.getField("postalcode").size(80);

Modified

Parameters

Size in pixels

Argument is a number.

1
dv.getField("fieldname").size(80);

Size in % (percent)

Argument is a string.

1
dv.getField("fieldname").size("25%");

See also: