Formcalc script for the "Save As" function

Avatar

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile
brianw81860517
Level 1

24-05-2016

Is there a Formcalc script for the "Save As" function?  Something similar to the JavaScript function "app.execMenuItem("SaveAs")?

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile
brianw81860517
Level 1

26-05-2016

What would make this simple command invalid in Formcalc?

if(Required[*].isNull) then



Avatar

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile
brianw81860517
Level 1

25-05-2016

Is there any way you could help me convert this from FormCalc to JavaScript?

if ((Sum(CheckBox1[*]) lt 1) or Todays_Date.isNull or JobNumber.isNull) then

xfa.host.messageBox("Please complete all required fields in Highlight YELLOW area to print.")

else

xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0)

endif

I'm going to replace the xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0) with "app.execMenuItem("SaveAs")

I'm lost.  Nothing I do seems to work.. Any help you could provide would be greatly appreciated!  I'm new to this and trying to learn all but it's been slow going.. Thanks in advance!

Avatar

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
brianw81860517
Level 1

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
View profile
brianw81860517
Level 1

25-05-2016

Thanks again for the help radzmar!!!!  I was hoping I wouldn't have to rewrite my Formcalc formula in JavaScript...I'm not so good with JavaScript....there is a print feature recognized in FC, I was hoping there was one for Save As...

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

24-05-2016

There is no such method in FormCalc. Acrobat's menu items are only available through the JavaScript API.

Avatar

Avatar
Boost 5
Level 2
try67
Level 2

Likes

14 likes

Total Posts

120 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
try67
Level 2

Likes

14 likes

Total Posts

120 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile
try67
Level 2

24-05-2016

[Question moved to the LCD forum]