UNPKG

nsmockup

Version:

Test your Suitescripts before deploying to NetSuite

19 lines (17 loc) 508 B
'use strict'; exports.$$hook = true; exports.nlapiGetFieldValues = (ctx) => { /** * Return the values of a multiselect field on the current record on a page. * @restriction supported in client and user event scripts only. * @param {string} fldnam the field name * @return {string[]} * * @since 2005.0 */ return (fldnam) => { let $this = ctx.$$THIS_RECORD || {}, record = $this.recordNew; return record.getFieldValues(fldnam); }; };