Skip to main content
vigneshs53970460
Known Participant
Aug 1, 2017 3:09 PM UTC
Question

Deleting the text field

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

vigneshs53970460
Known Participant
Aug 2, 2017 1:15 PM UTC

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.

Translate
try67
Community Expert
Community Expert
Aug 2, 2017 1:35 PM UTC

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

Translate
vigneshs53970460
Known Participant
Aug 2, 2017 11:24 AM UTC

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)??

Translate
try67
Community Expert
Community Expert
Aug 2, 2017 11:30 AM UTC

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.

Translate
Karl Heinz  Kremer
Community Expert
Community Expert
Aug 1, 2017 3:16 PM UTC

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

Translate