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.

element.getCustomFields();
 
// {
//   "name": "Canis lupus",
//   "family": "Canidae",
//   ...
//   "species": "C. lupus"
// }
 
element.getCustomFields("name");
 
// "Canis lupus"