PromptBox OK Event

The event message space supplied as a right argument to the callback function contains:

Name Value
Event 'OK'
Component The PromptBox instance
Document The associated document
OldValue The original value in the ProptBox
NewValue The new, current value

The result of the callback function must return a 0 or a 1. A 0 indicates that the PrompBox should be closed, a 1 indicates it should remain open.

If no callback function is specified, the PromptBox is closed.