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

AEM Forms Lifecycle Designer

Avatar

Avatar
Level 1
pranaym48551345
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
pranaym48551345
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
pranaym48551345
Level 1

14-05-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 2
gauravtyagi
Level 2

Likes

10 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
Boost 5
Boost 3
Give Back
Ignite 1
View profile

Avatar
Affirm 1
Level 2
gauravtyagi
Level 2

Likes

10 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
Boost 5
Boost 3
Give Back
Ignite 1
View profile
gauravtyagi
Level 2

14-05-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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

74 likes

Total Posts

67 posts

Correct Reply

19 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

74 likes

Total Posts

67 posts

Correct Reply

19 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 5

14-05-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-experienc...