Reference > Script steps reference > Records script steps > Revert Record/Request
 
Revert Record/Request
Purpose 
Returns the current record or find request to the way it was before editing began.
See also 
Format 
Revert Record/Request [With dialog: On/Off]
Options 
With dialog displays a dialog box when the script step is performed, asking users to confirm the revert action.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Partial 
FileMaker Go 
Yes 
Custom Web Publishing 
Partial 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Example 1 
Displays a dialog box if the current record has been modified but not committed. Gives the user the option of reverting the record.
If [Get ( RecordOpenState ) = 2]
Show Custom Dialog ["This record has been modified since it was last entered."]
#Button 1 is Commit. Button 2 is Revert.
If [Get ( LastMessageChoice ) = 2]
Revert Record/Request [With dialog: Off]
End If
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)