FIELDS(object)
// Returns { status: "Completed", name: "TBD" }
data.fields();
// Set multiple field values by passing an object
data.fields({ status: "Cancelled", name: "Test" });
// Returns { status: "Cancelled", name: "Test" }
data.fields();
Returns a basic object with variable_name keys and field values. If an object is passed to the method, the referenced fields will be updated.
Use the field
method to get and set individual field values.