Nour Khaled
04/13/2025, 1:46 PMCeligo AI
04/13/2025, 1:46 PMAI generated answer (using internal Slack threads):Yes, you can change the value of a disabled field on a custom record in a script in NetSuite. The disabled status of a field only affects the user interface, not the underlying data or the ability of scripts to interact with it. In SuiteScript, you can use the
setValue
or setCurrentSublistValue
methods to change the value of a field, even if it is disabled in the user interface. Here is an example:
javascript
var record = record.load({
type: 'customrecord_my_custom_record',
id: '123'
});
record.setValue({
fieldId: 'custrecord_my_disabled_field',
value: 'New Value'
});
record.save();
In this example, custrecord_my_disabled_field
is the ID of the disabled field, and 'New Value'
is the new value you want to set for the field. This script loads the custom record, sets the new value for the disabled field, and then saves the record.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/13/2025, 1:46 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830334604
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829422116
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82915324
Celigo AI
04/13/2025, 1:46 PM