Avatar

Level 10

Hi,

I have put an app.alert in the exit event to show that when the user uses the space bar to delete the content it resets the value to null.

Same URL: https://acrobat.com/#d=7jsiacYhcjNRgDCabY2cuw

The script is in the change event and will reset the field if the field contains a single whitespace character. This is equivalent to a user selecting all of the text and hitting the space bar.

I have a second example which fires on exit event.

Lastly I have a third field that doesn't have any script, so that if the user uses the spacebar to delete text, it will leave a whitespace character.

Hope that helps,

Niall