title: Suitescript - Hiding line fields during Sales Order/Invoice entry
body: <p>I'm wondering if anyone knows a way to HIDE certain fields (such as costs) from certain Netsuite roles if they are not permitted to see costs.</p>
  
  <p>I can prevent users changing sell prices without the proper authority with <strong>nlapiDisableLineItemField</strong> during PostSourcing and validateline etc...</p>
  
  <p>But with cost fields, I'd like to HIDE them if the user does not have COST access. I realize I can do this by creating a separate form that does not include costs, but if I can hide information via the script, it means less duplication of effort down the track with other things I have in mind.</p>