jen
var rec = context.currentRecord; var rec_fields = rec.getFields(); // error here that "rec.getFields" is not a function