Skip to main content
vigneshs53970460
Known Participant
August 1, 2017
Question

Deleting the text field

  • August 1, 2017
  • 3 replies
  • 999 views

Hi,

I got a request of 342 pages PDF document. I need to add a textfield at the bottom of the first page and that should duplicated for all the pages, by mistake I kept the field size small. So, I need to delete all the fields and that is so difficult to delete the field in all the pages.

I am going to add a button on the first page, when I click that button all the fields should be deleted instead of hiding it.

I need a javascript to do this work more easier.

This topic has been closed for replies.

3 replies

vigneshs53970460
Known Participant
August 2, 2017

I tried that method but, it's not working. So, I need a JavaScript to do this work.

Can you send me the script??

And I need another help. I'm new to LiveCycle designer.

Is there any script for fit to page in LiveCycle Designer??

In acrobat pro, I used to paste the below script on the first page of the document in the "page properties" option.

"this.zoomType =zoomtype.fitP;"

I know for LiveCycle it may change.

try67
Community Expert
Community Expert
August 2, 2017

This forum is about JavaScript in Acrobat forms. For questions about LCD forms use this forum: LiveCycle Designer

vigneshs53970460
Known Participant
August 2, 2017

thanks for the answer, it's really helpful.

Suppose if we have different field names, what should I do instead of mentioning all the "field names".

Is there any way to delete all the fields (Checkboxes, Button and textfields)??

try67
Community Expert
Community Expert
August 2, 2017

It can be done with a script, but you can simply select all the fields in the Fields List panel (in Form Edit mode) by pressing Ctrl+A, and then Delete.

Karl Heinz  Kremer
Community Expert
Community Expert
August 1, 2017

If you duplicated the field, all instances should have the same name. If that's the case, you can easily delete the field (and all it's instances) using this command:

  this.removeField("TheFieldName");

You can find out more about the removeField method here: Acrobat DC SDK Documentation