SubformField

Class representing a Field (Column) in a Subform.

Functions

# Create / Edit / Clone Pages

getApiName() → {String}

Get the API name of subform field

api_name

String
Examples

SampleCopycopied

var field_obj = ZDK.Page.getSubform("CFSubform").getField('Custom_Lookup1');
field_obj.getApiName();

Output

Custom_Lookup1

# Create / Edit / Clone Pages

setCriteria(criteria, config)

Set the criteria for lookup fields

Note: Supports a maximum of 5 criteria.

Parameters:
Name Type Attributes Description
criteria String

criteria for filtering lookup records

config Object <optional>

config for criteria

Example

SampleCopycopied

var field_obj = ZDK.Page.getSubform("CFSubform").getField('Custom_Lookup1');
field_obj.setCriteria("((Last_Name:equals:Burns)and(First_Name:starts_with:M))", {filterOnSearch: true});