is it possible to use setText in suitescript 2 on ...
# suitescript
i
is it possible to use setText in suitescript 2 on a custom record user event script on before submit. I have a custom record with a text field which I then want to link to a sales order, nlapisetfieldtext works in SS1 but when I try it in SS2 it's not setting it.
Copy code
var orderNum = record.getValue({
            fieldId: 'name'
        });
        log.debug('orderNum', orderNum);

        record.setText({
            fieldId: 'custrecord_tran_packages_tran_link',
            value: 'Sales Order #'+orderNum,
            ignoreFieldChange: true
         });
b
your parameters are wrong
i
@battk thanks! can't believe i missed that