On the field change of a specific field, if we change the field value of that same field through the script, the FieldChnage function will repeat triggering for the new change we have done through the script.
To avoid this issue Netsuite provides a parameter named “ignoreFieldChange”. In CurrentRecord.setValue function,, we can set this parameter as “true” to avoid this looping.
Sample code:
objRecord.setValue({
fieldId: 'item',
value: 2,
ignoreFieldChange: true
});