Hello everyone! I have a client that wants to bloc...
# suitescript
e
Hello everyone! I have a client that wants to block the "pricing level" for certain roles. I'm using
updateDisplayType
Copy code
context.form.getSublist({id: "item"}).getField({id: "price"}).updateDisplayType({displayType: FieldDisplayType.DISABLED});
Initially, when creating an empty sales order, the price level is disabled, but when I select an item, it gets enabled again... Then when I add another item, the price level is fully enabled again...
b
you can use client script to disable the field again after the item finishes sourcing
e
Thanks @battk!
We're leaning towards the custom form/role restriction