Cancelling Variable Changes
I'm working on a software simulation in which the user must click "Edit" in order to make changes to various Text Entry fields, and then click "Save" or "Cancel". I'm using Data Entry fields and text boxes that display the information entered into them but only appear when the user isn't in "Edit" mode.
My problem is with the "Cancel" button. Currently, I have "Cancel" set the fields back to their original state by adjusting the value (i.e. "Set WorkPhone equal to (503) 555-1234 When the user clicks"). This means if the user clicks "Edit", makes changes and saves them multiple times before clicking the "Cancel" button, it will return the fields to their original state rather than simply reversing the changes they just made.
Is there any way to have a cancel button reverse the most recently made changes to a Text Entry field?