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

How to delete pages conditionally to a checkbox being checked ?

Explorer ,
Apr 18, 2024 Apr 18, 2024

Copy link to clipboard

Copied

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

Views

168

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
community guidelines

correct answers 1 Correct answer

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.

Votes

Translate

Translate
Community Expert ,
Apr 18, 2024 Apr 18, 2024

Copy link to clipboard

Copied

Have you form fields on the template pages.

Votes

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

Copy link to clipboard

Copied

Yes.

Votes

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
community guidelines
Community Expert ,
Apr 18, 2024 Apr 18, 2024

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Community Expert ,
Apr 18, 2024 Apr 18, 2024

Copy link to clipboard

Copied

Answer is no.

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

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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 ?

Votes

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
community guidelines