In a LIST type sublist, the field can either be an entry or an inline type field. Using the updateDisplayType function, we cannot set the field as disabled; even if we do, it will display as an inline field. We can disable this sublist field using jQuery in the client script. There are two options… Continue reading How to disable a sublist field in a LIST type sublist in Suitelet
Tag: disable fields
How to disable a normal field in Client script Field Change
How to disable a normal field in Client script Field Change
Disable the fields and sublist fields from editing if the record was created 24 hours before.
If the record was created 24 hours before, restrict the user from editing some of the fields and sublists. For that, we can use a client script to disable the fields and sublists in the PageInit entry point based on the conditions. The sample codes are given below,
Disable “Options” Column on all The Transaction Forms
Disable “Options” Column on all The Transaction Forms
To disable a checkbox in edit context if it was checked initially during the record creation.
The checkbox was checked during the record creation, and when record is edited then it should be disabled. In User Event Script, beforeLoad(scriptContext) entry point is used. It has scriptContext.form as a parameter.
To hide remove button on the item sublist and disable a field.
To hide “REMOVE button” on the item sublist To unhide “REMOVE button” on the item sublist To disable a field in a sales order (variable_name is variable into which the value of the required field is get.) To enable a field in a sales order.
To disable field in sublist in lineinit of the client script
To disable column field in lineinit of client script
User Event Script to disable fields when logged in from any other role than Admin
Disable a Line Item Field for a specific line
Disable a Line Item Field for a specific line
Disable the fields in opportunity using Workflow.
Disable fields in opportunity record using workflow.