Highlighted

Not Including comment while calling the Web Service from Java Script

Community Beginner ,
Jul 30, 2020

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

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

TOPICS
Acrobat SDK and JavaScript, Comment review and collaborate PDF, Create PDFs, Edit and convert PDFs, Install update and subscribe to Acrobat, PDF forms, Standards and accessibility

Views

62

Likes

Translate

Translate

Report

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

Not Including comment while calling the Web Service from Java Script

Community Beginner ,
Jul 30, 2020

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

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

TOPICS
Acrobat SDK and JavaScript, Comment review and collaborate PDF, Create PDFs, Edit and convert PDFs, Install update and subscribe to Acrobat, PDF forms, Standards and accessibility

Views

63

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 30, 2020 0
Adobe Community Professional ,
Jul 30, 2020

Copy link to clipboard

Copied

It will not include comments when you submit as HTML.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Community Beginner ,
Jul 30, 2020

Copy link to clipboard

Copied

I have tried with Submit with FDF as well.

 

Could you please tell me the workaround.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Most Valuable Participant ,
Jul 30, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Community Beginner ,
Jul 30, 2020

Copy link to clipboard

Copied

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

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Adobe Community Professional ,
Jul 30, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Community Beginner ,
Jul 30, 2020

Copy link to clipboard

Copied

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 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Adobe Community Professional ,
Jul 30, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 1