is there a specific function to "clear out" or "re...
# suitescript
u
is there a specific function to "clear out" or "reset" a custom field's value to being empty via SS2? setting it to
""
seems to keep returning a
JS_EXCEPTION SSS_MISSING_REQD_ARGUMENT
(despite the rest of the script running fine anyway).
b
SSS_MISSING_REQD_ARGUMENT usually means you left something undefined
u
that's the thing. every call I have in the script where I run
CurrentRecord.setValue()
has a value. the currentRecord variable isn't empty, and the value I'm setting isn't a reference (it's an integer), so I'm quite confused on why the page is throwing that error out. I've yet to append a trycatch to see what's really causing it as I am currently mobile, but I'd like some insight on what could be causing it beyond an undefined variable.
b
the usual is to disable other scripts/workflows
j
is anything sourcing from the field that you are changing?
p
If you are not sourcing off oit, I have used currentRecord.setValue and passed null for the value and it blanks it out