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

How to delete pages conditionally to a checkbox being checked ?

Explorer ,
Apr 18, 2024 Apr 18, 2024

Hi, I have a pdf form that gives three options : phase one, phase two and phase three. Either choice generates different paths of form pages. But sometime, someone makes a mistake and then he clicks on a first option and then on a second. So, I need all checkboxes to delete the pages of the other path so there's no misunderstanding. However, because there are three options and not two, deleting pages based on there number in the row doesn't work because it will depend on what phase they will chose. So my question is the next, is there a way to delete pages based on the name of the templates of these pages and not the number of the pages ? And if so what is the code ?

TOPICS
How to , JavaScript , PDF , PDF forms
1.1K
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
1 ACCEPTED SOLUTION
Community Expert ,
Apr 18, 2024 Apr 18, 2024

Answer is no.

The easiest is to delete all spawned pages, and to respawn those you need.


Acrobate du PDF, InDesigner et Photoshopographe

View solution in original post

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 ,
Apr 18, 2024 Apr 18, 2024

Have you form fields on the template pages.

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
Explorer ,
Apr 18, 2024 Apr 18, 2024

Yes.

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 ,
Apr 18, 2024 Apr 18, 2024

The template name is part of the field names on the spawned pages.

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 ,
Apr 18, 2024 Apr 18, 2024

Answer is no.

The easiest is to delete all spawned pages, and to respawn those you need.


Acrobate du PDF, InDesigner et Photoshopographe
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
Explorer ,
Apr 18, 2024 Apr 18, 2024

Ok. So the only way is to delete pages by their number in the pages order then ?

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
Explorer ,
Apr 23, 2024 Apr 23, 2024
LATEST

Is there a way to delete pages based on their number in the order but conditionnaly to a previous checkbox beign checked in that case ?

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