Skip to main content

Form Template

Properties | Events | Methods

Form Template is used to define predefined checklists

Properties

Custom

Accordian

'steraccord' String
Groups within an accordion layout and allows configuration of their state as Expanded, Collapsed, or Not Applicable.

Checklist Design Type

'chklstdsgtyp' String
Defines the visual layout style used to render the checklist.

View Type

'dviewtype' String
Specifies the overall layout type in which the checklist is displayed.

Allow HTML Inputs

'ishtmlcon' String
Enables the use of HTML content as input within the form.


Methods

The following methods will be revised in the Form Template and subsequently mapped to the Template Control.

SetListCtrlProperty

Function Set the value for the template fields

Default Variant

Return Type
string|number|boolean|date|time|json|array|bit|date and time|

Syntax

SetListCtrlProperty("<<Template Field ID>>","<<Property Name>>","<<Value>>")

Example:
SetListCtrlProperty("2ZiLCMAtDe", "hide", false);

Parameters

Template Field ID string : System-generated field which will generate a sequence of keys each time a new field is added (Eg, 2ZiLCMAtDe).

Property Name string : Mention the respective property name.

Value boolean : Specifies the value assigned to the property which will be changed on property data type.


GetListCtrlProperty

Function Get form template field values

Default Variant

Return Type
string|number|boolean|date|time|json|array|bit|date and time|

Syntax

let <<Variable Name>> = GetListCtrlProperty("<<Template Field ID>>","<<Property Name>>");

Example:
let lsvalue = GetListCtrlProperty("dy1ji9M2Vj","value");

Parameters

Template Field ID string : System-generated field which will generate a sequence of keys each time a new field is added (Eg, dy1ji9M2Vj).

Property Name string : Mention the respective property name.


AutoFillFromDataSource

Function The control is automatically filled with a value when the page loads.

Default Variant

Return Type
string|number|boolean|date|time|json|array|bit|date and time|

Syntax

AutoFillFromDataSource(<<Data>>)

Example:
AutoFillFromDataSource({ "type": "App", "dataset": 3070191, "params": [{ "pname": "HNUM", "source": "PV", "value": 46, "defvalue": null }], "code": "DSCODE", "value": "RESULTVAL", "lookup": -1 ,"tag":"wps"})

Parameters

S.NoGroupFieldDescription
1JSONDataNeed to define data in JSON format
2GroupTypeNeed to enter the type as Application
3GroupDatasetNeed to enter the data source object ID
4GroupParameterNeed to define the parameter in JSON format
5GroupParameter NameNeed to enter the parameter name, which is available in the mapped data source
6GroupSourceNeed to enter the source based on a parameter
7GroupValueThe value needs to be entered based on the source
8GroupDefault ValueUsed to define the default value for the mentioned parameter
9GroupCodeMention the field name for the code field
10GroupValueMention the field name for the value field
11GroupLookupIf it's a design object, enter the corresponding lookup ID; otherwise, enter -1
12GroupTagEnter the Tag name defined in the form template field