Skip to main content
Inspiring
April 18, 2024
Answered

How to delete pages conditionally to a checkbox being checked ?

  • April 18, 2024
  • 2 replies
  • 1362 views

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 ?

This topic has been closed for replies.
Correct answer JR Boulay

Answer is no.

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

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
April 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
Inspiring
April 18, 2024

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

Bernd Alheit
Community Expert
Community Expert
April 18, 2024

Have you form fields on the template pages.

Inspiring
April 18, 2024

Yes.

Bernd Alheit
Community Expert
Community Expert
April 18, 2024

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