Clear

Deletes the contents of the specified field in the current record.

Options 

  • Select entire contents deletes the entire contents of a field. If you do not use Select entire contents, only the selected portion of the field's data is deleted.
  • Go to target field specifies the field whose contents you want to delete.

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go Yes
FileMaker WebDirect Partial
FileMaker Server Yes
FileMaker Cloud products Yes
FileMaker Data API Yes
Custom Web Publishing Yes

Originated in version 

6.0 or earlier

Description 

This script step removes the contents of the field in the current record without placing the contents on the Clipboard. If you want to cut and paste the field information, use the Cut script step. Use Undo immediately to restore the contents.

Notes 

  • If you manually select field data before you run this script step in FileMaker WebDirect, the script step performs as if you did not make a selection. To select field data before you run this script step in FileMaker WebDirect, use the Set Selection script step.

Example 1 

Clears the Email field in the current record.

Copy
Show Custom Dialog ["Do you want to clear the customer's email address?"]
If [Get ( LastMessageChoice ) = 1]
Clear [Select; Customers::Email]
End If