Form's number of pages depending on filled fields
Hello,
I'm working on a form for safety reviews. When filling it in, the user is supposed to declare all safety events first.
I have a set of 2 pages that I would like to duplicate for each safety event (1 safety event = 2 analysis pages). In a nutshell, the total number of pages of my form depends on the number of safety events declared.
All my safety events are declared in text fields (1 filled text field = 1 safety event).
I would like, if it is at all possible (but I'm confident it is) to have, each time a safety event text field is filled, my 2 analysis pages to be duplicated so that, in the end, I have 2 analysis pages per safety event.
I hope I'm being clear here, don't hesitate to ask questions.
I just started to study how PDF Forms work with JavaScript, so it would be nice to have so help. I struggle to find the variables I can use to do this : I imagine ther must be some kind of variable for each page that I could duplicate...? But I don't know if it's that simple.
I'm gonna keep on looking, in the meantime, I thank you for your precious help.
