Maybe I'm just tired, but in beforeSubmit XEDIT how can I identify if a value has been changed to blank or just wasn't one of the fields that changed?
b
battk
11/08/2022, 10:04 PM
best documentation on this is sadly ss1, so you will have to do minor translation
👍 1
w
Watz
11/08/2022, 10:07 PM
ah thanks!
Watz
11/08/2022, 10:08 PM
context.newRecord.getFields() then.
d
David
11/09/2022, 1:11 AM
@Watz that's right, if the field name is returned by a call to getFields, it's been updated and the new value (even if empty) can be retrieved using a call to getValue
🤕 1
w
Watz
11/09/2022, 6:46 AM
Yes, and as the context.oldRecord contains the values that didn't change it is safe to get the current ones from there.