Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Not Including comment while calling the Web Service from Java Script

Community Beginner ,
Jul 30, 2020 Jul 30, 2020

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.

TOPICS
Acrobat SDK and JavaScript
741
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 30, 2020 Jul 30, 2020

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

Translate
Community Expert ,
Jul 30, 2020 Jul 30, 2020

It will not include comments when you submit as HTML.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2020 Jul 30, 2020

I have tried with Submit with FDF as well.

 

Could you please tell me the workaround.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 30, 2020 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2020 Jul 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

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2020 Jul 30, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2020 Jul 30, 2020

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 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2020 Jul 30, 2020
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines