After saving the form, we are changing one of the form field value explicitly using frm.set_value(“current_location”, obj.id).
I have used jquery autocomplete plugin…so in Database side we are storing id field and on form showing city value. so in after_save trigger setting city name again.
Then it shows Document status as ‘Not Saved’… as we have changed the field value.
How to set Document status as ‘Saved’.?