Skip to main content
andrewb5659891
Participant
July 8, 2019
Question

Why doesn't this javascript delete comments on forms in the iOS Adobe Reader App

  • July 8, 2019
  • 2 replies
  • 387 views

HI all

I have created a form using Acrobat and it works well on the iPad which is the target device for using the form. As part of using the form I want users to be able to select "add comment" and sign the form using their finger and then submit it.

I then want to be able to use a javascript to "clear" the form and delete all comments

I am using this javascript which works perfectly on the desktop but doesnt work on an iPad. Any ideas why? Thanks in advance

syncAnnotScan();var annots = getAnnots();var i; for (i = (annots.length - 1); i > -1; i -= 1) {annots[i].destroy();}

This topic has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
July 8, 2019

Try the app PDF Expert.

JoelGeraci
Participating Frequently
July 8, 2019

Acrobat JavaScript on iOS is extremely limited compared to the desktop version. See the link to the documentation below. Your script simply is not going to run on iOS.

JavaScript for Acrobat Reader Mobile API Reference (iOS) 

andrewb5659891
Participant
July 8, 2019

Thanks Joel. Do you know of anyway that I can use a script to delete comments that will work in iOS?