Formcalc script for the "Save As" function

Avatar

Avatar

brianw81860517

Avatar

brianw81860517

brianw81860517

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

brianw81860517

Avatar

brianw81860517

brianw81860517

26-05-2016

What would make this simple command invalid in Formcalc?

if(Required[*].isNull) then



Avatar

Avatar

brianw81860517

Avatar

brianw81860517

brianw81860517

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

brianw81860517

Avatar

brianw81860517

brianw81860517

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

radzmar

MVP

Avatar

radzmar

MVP

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

try67

Avatar

try67

try67

24-05-2016

[Question moved to the LCD forum]