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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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