Cancelling Variable Changes

Dec 26, 2013

Hello,

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?

Thank you!

3 Replies
AnDrew Hopkins

Thank you Ashley! I had a feeling this wasn't possible, but I figured I'd see if anyone had any ideas. I didn't know that setting variables to blank returns them to their defaults, so that should save a little time.

As a workaround, I think I'll have a little pop-up that notifies users that in the simulation the cancel button will return all fields to their original states.

Ashley Terwilliger-Pollard

Hi AnDrew,

I think the workaround you shared is probably the best option, to return the variable to the original state and that way the user will be able to enter any new data if they'd like. You may want to set the cancel button pop up to show on hover instead of on click - that way they'll be able to see the message prior to actually resetting the variable. 

This discussion is closed. You can start a new discussion or contact Articulate Support.