Here we go with another beautiful bug or feature.....
# suitescript
a
Here we go with another beautiful bug or feature... who knows: beforeSubmit and afterSubmit UserEvent entry points, reading checkbox value from new and old record in EDIT mode through the UI always returning FALSE. What about that?
e
Copy code
define([], function () {
  return {
    beforeSubmit: function (context) {
	  log.debug({title: "Old value:", details: context.oldRecord.getValue({fieldId: "custentity2"})});
	  log.debug({title: "New value:", details: context.newRecord.getValue({fieldId: "custentity2"})});
	}
  }
});
😎 1
Any permissions on your checkbox field?
a
@erictgrubaugh No permissions(Default EDIT, EDIT), change field ID, create new field, same... I think is a bug in this specific account/netsuite instance.
Always FALSE.