Expand my Community achievements bar.

SOLVED

AEM Forms Lifecycle Designer

Avatar

Level 4

Hi All,

I am trying some code to close my lifecycle form after the printing of the form.

I am using the below script to close the form, but it is not working. Can someone help me on this.

app.execMenuItem("Close")

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Pranay,

 

ideally ,this should have worked and is the standard way to close the form.

 

if you could try to see if you are writing this on FormCalc or JS tab.

 

Else please try form.close() on JS.

 

have a look at this link as well please it can help clarify 

 

Java How to close PDF from using pdf javascript? - Stack Overflow

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Hi Pranay,

 

ideally ,this should have worked and is the standard way to close the form.

 

if you could try to see if you are writing this on FormCalc or JS tab.

 

Else please try form.close() on JS.

 

have a look at this link as well please it can help clarify 

 

Java How to close PDF from using pdf javascript? - Stack Overflow

Avatar

Community Advisor
 

Hi @pranaym48551345 ,

 

There is another community for AEM Forms, you should post the question in there, you will get fast response. 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/ct-p/adobe-experienc...