Functions
# Create / Edit / Clone Pages
getApiName() → {String}
Get the API name of subform field
api_name
String
Examples
var field_obj = ZDK.Page.getSubform("CFSubform").getField('Custom_Lookup1');
field_obj.getApiName();
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
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});