Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Forms Lifecycle Designer

pranaym48551345
Level 2
Level 2

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
gauravtyagi
Correct answer by
Level 3
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
gauravtyagi
Correct answer by
Level 3
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

Ritesh_M
Community Advisor
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...