Form

Class representing a Form in a Page.

Functions

# Create / Edit / Clone Pages

setValues(values)

Set the form values in the Page

Parameters:
Name Type Description
values Object

Field values

Example

SampleCopycopied

ZDK.Page.getForm().setValues( {
 'Custom_Field1': 'value',
 'Account_Name' : { id: "5164254000000366162", name: "John Doe" },
 'Email_Opt_Out': true,
 'Subform_1' : [ { 'Email_1' : 'henry@zylker.com' , 'Website1' : 'www.henryzyker.com' } ],
 ...
} )

# Create / Edit / Clone Pages Detail Page (Canvas) Detail Page (Standard)

getValues() → {Object}

Get the form values as Object

Form values

Object
Examples

SampleCopycopied

ZDK.Page.getForm().getValues();

Output

{
 'Last_Name' : 'Zylker Ibro',
 'Subform_1' : [ { 'Email_1' : 'henry@zylker.com' , 'Website1' : 'www.henryzyker.com' } ],
 "Email_1": "henry@zylker.com",
 "Email_Opt_Out": true,
 ...
}