Links

Get Element Custom Fields

<Object|String|Integer> getCustomFields([<String> key])
Studio supports custom fields within Elements. This returns an object populated with the custom fields or value if a field's key is provided. Object property names will match keys as provided as part of custom fields definition in the feed and values will be as collected by Studio.
JavaScript
External
element.getCustomFields();
// {
// "name": "Canis lupus",
// "family": "Canidae",
// ...
// "species": "C. lupus"
// }
element.getCustomFields("name");
// "Canis lupus"
// If the data returned is of the type external,
// it will be an array in the following structure:
[
{
id: "object id",
data: "data"
},
...
]