```record.submitFields({ type: "bin", id: 1077, va...
# suitescript
s
Copy code
record.submitFields({
type: "bin",
id: 1077,
values: {'binnumber': 'abcd'}
});
^ no error
Copy code
record.submitFields({
type: "bin",
id: 1077,
values: {'custrecord_rfs_is_staging': true}
})
^ error
t
Hmm that's really weird. Why would trying to change a custom field cause an unexpected error 😞 When I modify the code to load/set/save the record it works no problem.
s
Custom field made locally or by a bundle?
t
Made locally. Just an integer field storing a number. Thought maybe it was an issue with accepting the value, so I tried changing it to a free-text field but still had the same issue
s
Yeah not sure, maybe other record fields arent submitFields-able. Seems like a weird thing to happen
I made a new one on bin records and get unexpected error as well.
t
Oh Netsuite 😕
n
@Tyler is the field fine by this? You can use this method to edit and submit the following: • Standard body fields that support inline editing (direct list editing). For more information, see Using Inline Editing. • Custom body fields that support inline editing. You cannot use this method to edit and submit the following: • Select fields • Sublist line item fields • Subrecord fields (for example, address fields)
t
@Nikola Gavric this specific field is a custom body field, and I don't see anything that would suggest it doesn't support inline editing. Is there a way I can check to see if it does or does not?
n
I think it should be enough to pull the field out in a search or so and see if it's editable in inline mode, I might be wrong but I think so.. @Tyler
t
@Nikola Gavric It doesn't appear to be inline editable. I wonder how NetSuite determines what custom body fields are inline editable, and which ones aren't. Or perhaps it's a settings issue with this particular client's account.
The account has inline-editing enabled, so I'm at a loss
n
Is inline editing enabled in the custom record?
I'm not really sure this makes a difference but you could also try to enable this option on the field:
Also: "If a field on a record is referred to by a formula custom field, you cannot edit the referenced field with inline editing. For more information on sourcing, see Creating Formula Fields."
is this field referred to?
t
Both of those settings are enabled, and the field isn't referred to by a formula custom field. I'm at a loss on this one
n
@Tyler what about the visibility of the field, is it maybe set to inline or disabled in the preferred form?