Hi,
I’m running a client side script (JS) to update a field value with the click of a button. This happens flawlessly, the field value gets updated. But after that, I run the .save() code which also runs but I get a toast message saying “Nothing to Save.” Its like the form doesn’t realize that a value has been changed and thus does returns null on save. I have tried adding is_dirty as some users have suggested, but still nothing.
Any ideas?
frm.doc.status = "Completed";
frm.is_dirty();
frm.save();
frm.refresh_fields("status");