I'm trying to create a proposal submission form. Most proposals are submitted by just one person, many by two or three, but in rare cases by as many as twelve. I am therefore trying to insert a subform for the personal data that should appear on the form as many times as needed.
I tried to insert a buttons to trigger additional subforms to appear but this doesn't seem to work. Now I'm totally lost to as to solve this issue.
First thing to check, do any other buttons work in the PDF? I say this as you need to ensure that it is saved as a dynamic PDF. Sometimes I open a new form with email and print buttons and this kick starts the process, and you can delete them if needed.
If this is working then you will need to check that you have ensured that both the page that the subform is on is set to flow and also that the subform is set to flow as well.
Finally check that your code is correct for the button(info on this in Adobe help) to trigger and it should be entered as a click event.
"Pagename.Subformname".occur.max = "6";
"Pagename.Subformname".occur.min = "1";
"Pagename.Subformname".occur.initial = "1";
if ("subformname".instanceManager.count == "subformname".instanceManager.max)
xfa.host.messageBox("You have entered the maximum number of subforms", 1);