AEM Forms Lifecycle Designer | Adobe Higher Education
Skip to main content
pranaym48551345
Level 3
May 14, 2021
解決済み

AEM Forms Lifecycle Designer

  • May 14, 2021
  • 2 の返信
  • 965 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー 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 の返信

gauravtyagi
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