Boost your productivity and maximize your use of NetSuite with Training delivered by Education Services expert resources. Get started today with a free LCS Explorer Pass.


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!
Attention: Customers with NetSuite Electronic Bank Payment (EBP) SuiteApp, version 2020.2 QA (ID 315896) must UPDATE (do NOT uninstall) their bundle to the Production version 2022.1 (ID 416781) by December 31, 2022. Note: If users fail to manually update the Electronic Bank Payments SuiteApp within the given time window, this version of the SuiteApp (ID: 315896) will be deprecated and the account will not be updated to Leading version (2022.1) of the Electronic Bank Payments SuiteApp. Please refer to the campaign email sent to impacted customers for more information.
Update your Profile with your Support type to get your Support Type badge.
Join the NetSuite Referral Program and get rewarded for introducing your peers to the NetSuite community. ⭐️
Drumroll please...registration for #SuiteWorld 2023 is now OPEN! See you in Las Vegas October 16-19 to celebrate 25 years of NetSuite with even more learning, more networking, and more fun! The show will sell-out (again), so grab that Early Bird $300 discount and reserve your spot today!

What is the correct Suitescript 2.0 method to disable a column

edited Feb 20, 2023 11:41PM in Ask A Guru 3 comments


I have a userevent script with a before record load function.

The function is working correctly for the most part other than the following:

 var rateColumn = form.getSublist({ id: "item" }).getField({ id: "rate" });
      rateColumn.updateDisplayType({ displayType: "disabled" });

      var plColumn = form.getSublist({ id: "item" }).getField({ id: "price" });
      plColumn.updateDisplayType({ displayType: "disabled" });

      var amtColumn = form
        .getSublist({ id: "item" })
        .getField({ id: "amount" });
      amtColumn.updateDisplayType({ displayType: "disabled" });

      var grossAmtColumn = form
        .getSublist({ id: "item" })
        .getField({ id: "grossamt" });
      grossAmtColumn.updateDisplayType({ displayType: "disabled" });

When the displayType is set to disabled, this does nothing.

However, if it is set to 'hidden' that works correctly.

Howdy, Stranger!

Log In

To view full details, sign in.


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


This Week's Leaders

This Month's Leaders

All Time Leaders