We can add or update the values in disabled fields by console.
Steps:
- Edit the current record.
- Right click -> Select Inspect
- Select console.
- Click on clear icon.
- Type require([‘N/currentRecord’], currentRecord=>window.currentRecord=currentRecord); then press enter
- Type let recordObj = currentRecord.get(); then press enter
- If transaction line field need to be updated, select the corresponding field, and then type in console:
recordObj.setCurrentSublistValue({sublistId: ‘x’, fieldId: ‘y’, value:z}) Add right values in place of , y and z.
For eg., updating item line field amount:
recordObj.setCurrentSublistValue({sublistId: ‘item’, fieldId: ‘amount’, value:7930}) - If body level field need to be updated,
recordObj.setValue({ fieldId: ‘x’, value:y})
For eg., updating memo
recordObj.setValue({ fieldId: ‘memo’, value:test}) - Save the record