Custom HTML Result Button Value When Prompt Is Closed

Apologies to Chris et al,

I only provided one portion of the KM macro of JMichaelTX's demo. In order to see the issue, one must have the other two files that he provided as part of the demo. Jim provided the attached zip file.

[KM] DEMO KM HTML Form Set by AppleScript.zip (18.2 KB)

For a full explanation, see his post here. Pressing ESC from the user prompt doesn't seem to have the HTML Result Button captured as intended.