Closing a form


ok....this should simple, must missing fundamental. i'm trying close form using click event of regular button. adobe javascript reference guide dictates following:

var d = app.activedocs;
for( var in d ) d[i].closedoc();

but.... d returns no active docs. doesn't work.

i've looked in adobe designer help, , xfa 2.2 insite no luck.

any appreciated.

you can use following close form. thing want aware of works when form opened in acrobat or reader (not when opened in browser).

app.execmenuitem("close");


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments