{"identifier":36487,"topic":"Commands","name":"enterInField","text":"<code><pre>enterInField\n<\/pre><\/code>\nHyperCard sends the<code> enterInField <\/code>command to a field when the user presses Enter and the insertion point is in the field. <code><pre>\n<\/pre><\/code>\nThis<code> <\/code>command saves the results of any changes the user or a handler makes to a field and closes the field.   <br><br>\n\n HyperCard sends a<code> closeField <\/code>message if the user made  changes to the text or sends<code> exitField <\/code>if the user did not make any changes). <br>\n<br>\nYou can handle the<code> enterInField <\/code>message as follows: <br><br>\n\n <code><pre>on enterInField\n   <i>statements<\/i>\nend enterInField<\/pre><\/code> <br>\n","related":{"17449":"closeField","3428":"Commands sent automatically","19615":"exitField","19146":"deleteField","22421":"newField","23457":"openField","46143":"returnInField","6031":"Where messages are sent initially"},"examples":"","demo":"","debug":{"9":["enterInField\r\rHyperC"],"10":["You can handle the e"]}}