You have unsaved changes to this record. Save now?

I go to the details of a record, and when I enter data changes, I press the back button and a popup appears asking if I want to save the changes. If I press no, it has to return to the list screen, and if yes, it has to save the record. I wrote run in RAD to run the wizard for it but it didn't work.