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 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Partial 
FileMaker Go 
Yes 
Custom Web Publishing 
Partial 
Instant Web Publishing 
Partial 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
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)