$Page

Contextual data that's been shared by the page.

Members

#

record

get current record information stored in the server

object
Examples

SampleCopycopied

$Page.record;

Output

{
 First_Name: "John",
 Full_Name: "John zylker",
 Last_Name: "zylker",
 ...
}

#

record_id

get current record id

string
Examples

SampleCopycopied

$Page.record_id;

Output

527627200000037XXXX

#

layout_id

get current layout id

string
Examples

SampleCopycopied

$Page.layout_id;

Output

527627200000009XXXX

#

module

get current module

string
Examples

SampleCopycopied

$Page.module;

Output

Leads

#

parent_record_id

Get the parent record ID while cloning.

string
Examples

SampleCopycopied

$Page.parent_record_id;

Output

1776121000000694009

Get custom navigation data passed from ZDK.Client.navigateTo method

Object
Examples

Sample for navigating to List pageCopycopied

ZDK.Client.navigateTo('record_list', { module: 'Leads', custom_view_id: '111111000000046541', custom_data: [{ key: "value"}] }, '_self');

To get navigation data in List pageCopycopied

$Page.navigation_data;

Output

{
 key: "value",
 ...
}

#

name

Get the current page name

string
Examples

SampleCopycopied

$Page.name;

Output

'record_detail' | 'record_create' | 'record_clone' | 'record_edit' | 'record_list' | undefined