Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Problem with nlapiDisableLineItemField on State field
I'm having a problem with the nlapiDisableLineItemField when trying to disable the State field on the address tab on page init. I'm able to disable all fields (label, address1, address2, city, etc) but just not the State.
Here's what I have:
function onPageInit() { //disable fields nlapiDisableLineItemField('addressbook', 'label', true); nlapiDisableLineItemField('addressbook', 'attention', true); nlapiDisableLineItemField('addressbook', 'addressee', true); nlapiDisableLineItemField('addressbook', 'phone', true); nlapiDisableLineItemField('addressbook', 'addr1', true); nlapiDisableLineItemField('addressbook', 'addr2', true); nlapiDisableLineItemField('addressbook', 'city', true); nlapiDisableLineItemField('addressbook', 'state', true); //not working nlapiDisableLineItemField('addressbook', 'zip', true); nlapiDisableLineItemField('addressbook', 'country', true); nlapiDisableLineItemField('addressbook', 'addrtxt', true); nlapiDisableLineItemField('addressbook', 'override', true); }Any ideas? Bug? The country field is also a dropdown list and it does disable.
0