here I found my function ``` function disableRateF...
# suitescript
j
here I found my function
Copy code
function disableRateField(rec: ClientCurrentRecord) {
	const line = rec.getCurrentSublistIndex({ sublistId: 'item' });
	const max = rec.getLineCount({ sublistId: 'item' });
	// netsuite throws an error if the current line is a new line
	if (0 <= line && line < max) {
		const f = rec.getSublistField({ sublistId: 'item', fieldId: 'rate', line: line });
		if (f) {
			f.isDisabled = true;
		}
	}
}