Skip to main content
Known Participant
July 30, 2020
Answered

Not Including comment while calling the Web Service from Java Script

  • July 30, 2020
  • 2 replies
  • 872 views

Hello All, 

I'm calling my web Service from the Submit button. I'm sending as a FDF include Comments. when I'm calling it as physically click on the button it's sending comments, but when I tried to call it with Java scipt it does not include coments/Stick notes.

 

I have tried the below method:

 var myURL = "http://localhost.../"
this.submitForm(myURL, null, "HTML");
this.submitForm("http://localhost",
true, false,"");
//var cd=('http://localhost');
//this.submitForm(cd,"Comment", "#FDF");

 

Can someone please help me.

This topic has been closed for replies.
Correct answer Bernd Alheit

Thanks for  that. 

I have tried the below one but that is not working.

//cURL, [bFDF], [bEmpty], [aFields], [bGet], [bAnnotations],
var myURL = "http:URl"
this.submitForm(URL,true,false,true,true);

I'm passing the bAnnotations but it's not working 


In your sample you use only 5 parameters. bAnnotions is the 6th parameter.

2 replies

Legend
July 30, 2020

None of your examples set the required bAnnotations parameter. What are you using for reference documentation? You must use the Acrobat JavaScript API document, you cannot write Acrobat JavaScript using Google.

Known Participant
July 30, 2020

I'm using API document for Reference, I was looking for Option as submit button wth Parmeter.I have tried the below one.

this.submitForm(myURL,true, true, null, true);

that did not work. I have checked Bible did not find anything with submit button

 

 

Bernd Alheit
Community Expert
Community Expert
July 30, 2020

It will not include comments when you submit as HTML.

Known Participant
July 30, 2020

I have tried with Submit with FDF as well.

 

Could you please tell me the workaround.