pjs.getReference()
pjs.getReference() will return a reference object for a field.
Parameters
Field name
Return Value
An object containing properties for the field buffer, configuration, and other information about the field
Example
pjs.define("s", { type: 'char', length: 10, initValue: 'abc' });
var ref = pjs.getReference(s);
console.log(ref);