Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
How to resolve the UE error when SuiteBilling Enabled?
I used code to hide certain fields in my custom invoice form as below.
/**
* @NApiVersion 2.1
* @NScriptType UserEventScript
*/
define(['N/runtime','N/record','N/ui/serverWidget'],
function (runtime,record,serverWidget) {
var exports = {};
function beforeLoad(scriptContext) {
var form = scriptContext.form
var user = runtime.getCurrentUser()
//MAIN FIELDS
//Hide country of origin
var countryoforigin = form.getField({id: 'custpage_country_of_origin_temp'})
countryoforigin.updateDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN})
//Hide counterparty vat number
var counterpartyvatnumber = form.getField({id: 'custbody_counterparty_vat'})
counterpartyvatnumber.updateDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN})
//Hide delivery terms
var deliveryterms = form.getField({id: 'custpage_delivery_terms'})
deliveryterms.updateDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN})
//Hide nature of transaction code