Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!

How to resolve the UE error when SuiteBilling Enabled?

edited Jul 6, 2023 4:43PM in Ask A Guru 20 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders