Load multiple pages and run API action

Hello fellow Bubblers,

I am building a form app for that involves the following procedure:

1/ An operator fills a complex form with a 3 levels hierarchy.
In other words, a main form (red), that can have multiple sub-forms (green) embedded in it. Each sub-form can have sub-sub-forms (blue) but they’re not relevant here.

2/ One it’s done, I need to generate:

  • A PDF from the main form (red)
  • and as many PDFs as there are sub-forms (green). These “sub-forms” PDFs have the same layout, with different data in it.

I’m using a custom-made API to generate PDF’s from the URLs but I’m stuck on how to generate multiple pages at the same time with the proper data and without the user seeing this.

How would you approach this problem?

Thank you so much for your help :slight_smile: