Skip to main content

Field functions

id#

The id function takes the field object as input and returns the id of the field.

Syntax:

new NameSpace("field").id(Object fieldObj);

Returns: Number

Example:

id_val = new NameSpace("field").id(fields_obj);log id_val;

asMap#

The id function takes the field object as input and returns the map of that field object.

Syntax:

new NameSpace("field").asMap(Object fieldObj);

Returns: Map

Example:

map_val = new NameSpace("field").asMap(fields_obj);log map_val;
On This Topic