RE: Disabling department field on item line causing issues with department body field
I am disabling department field(label : cost centre) on item line on Vendor Bill and other transactions using UserEvent script on beforeLoad entry point but the issue is that when the department (Label : Cost Centre) field is disabled on item line , departments list doesn’t show up on department (Label : Cost Centre) body field. Please see attached screenshot. Does any one know why is this happening ?
Hi Ahmed, I do not know the root cause of this particular issue. I would recommend submitting a NetSuite Support ticket. One consideration would be to perform the same action using a client script, which may provide the desired outcome.
In the interim, have you considered alternate solutions e.g. hiding the “Cost Centre” line level field on the form so it is not displayed in the UI, therefore avoiding the need for the user event script?