Formcalc script for the "Save As" function

Accepted Solutions (0)

Answers (5)

Answers (5)

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!

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...