Revert Record/Request
Purpose 
Returns the current record or request to the way it was before you began adding or changing data in the record.
Format 
Revert Record/Request [No dialog]
Options 
Perform without dialog prevents a dialog box from displaying when the script step executes that asks the user to confirm the revert action.
Compatibility 
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Examples 
Show Custom Dialog ["Commit record or revert changes?";
"Click 'Commit' to save your changes, or 'Revert' to
discard changes to this record."]

#1 = Commit, 2 = Revert

If [Get(LastMessageChoice) = 1]
Commit Records/Requests
Else
Revert Record/Request [No dialog]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)