```transferOrder.save({ ignoreMand...
# suitescript
d
Copy code
transferOrder.save({
                ignoreMandatoryFields: true
            });
any idea why this code does not work with custom line item fields ?
s
do you mean you have mandatory custom fields and the record fails to save?
d
yes right
i have a custom line item field,
custcol_abc
, it's empty at some of my Transfer Order record, i want to close those TO using scheduled script
s
strange - I don't recall running into this myself, but maybe that only applies to native fields?
d
but when i do the above code, i got error
"type":"error.SuiteScriptError","name":"USER_ERROR","message":"Please enter value(s) for: xxxx"
s
maybe use a custom form on which that field isn't mandatory?
d
i'm using a custom form now, but also, i don't see any option to set / unset mandatory for sublist fields
the field itself is mandatory, and it's being set on the field record, so now it's mandatory across Sales Order, Transfer Order and Purchase order
s
does it not make sense to provide a value for that field, since it is mandatory after all?