Reply to: doModal in xft formsMarch 18, 2010 at 11:06 pm
Actually, the return values are 1 and 2:
OK button (or “OK” the form via some other means) = 1
Cancel button (or dismiss the form via some other means) = 2
You can confirm this by running the following code:
[code]//XMetaL Script Language JScript:
var xftPath = Application.Path + “\forms\ulink.xft”;
var retval = dlg.DoModal();
The sample form in this case is really meant to be used with the Journalist demo, but should launch with the code above regardless (just don't fill anything in before clicking OK / Cancel / Close button or ESC key). Or substitute your own form at line 2 for xftPath.
I agree, this should be documented.