AEM Forms Lifecycle Designer | Community
Skip to main content
pranaym48551345
Level 3
May 14, 2021
Solved

AEM Forms Lifecycle Designer

  • May 14, 2021
  • 2 replies
  • 965 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by gauravtyagi

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

2 replies

gauravtyagi
gauravtyagiAccepted solution
Level 2
May 14, 2021

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

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 14, 2021
 

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-experience-manager-forms-community