Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using buttons to add instances in LiveCycle Designer

Status
Not open for further replies.

ttianna

Technical User
Oct 13, 2009
1
US
I am creating a complicated, dynamic form in LiveCycle Designer. I am sort of learning the program as I go. I need to add subform instances based on the needs of the user. I have managed to get two button/subform combinations to work, but the others aren't working.

I have attached my form. It's a doozy. It seems like it's a getting a little out of hand - too complicated with too many subforms, but I'm not sure how else to organize it. This form is for a complicated task with a lot of variables. I would also like to know how to set it up so that only the parts the user is seeing render to reduce load time. If you are looking at my form and have any ideas about how to better organize it, I welcome the suggestions. This is my first attempt at working with LiveCycle.



Anyway, back to my original question.

assessment.addanotherstandard.addanotherstandard_btn works to add an instance of assessment.Standards.Standardsdetail

and

assessment.addanotherobjective.addanotherobjective_btn works to add an instance of assessment.Objectives.objectivesdetail.objectivesdetail



However, these buttons/subforms are not working:



assessment.Questions.Questionset.Questiondetail.MCdetail.addanswer_btn::click - (JavaScript, client)

xfa.form.assessment.Questions.Questionset.Questiondetail.MCdetail._answer.addInstance(1);



assessment.Questions.Questionset.Questiondetail.Matchingdetail.addmatch_btn::click - (JavaScript, client)

xfa.form.assessment.Questions.Questionset.Questiondetail.Matchingdetail._matches.addInstance(1);



assessment.Questions.Questionset.Questiondetail.MSdetail.addanswer_btn::click - (JavaScript, client)

xfa.form.assessment.Questions.Questionset.Questiondetail.MSdetail._answer.addInstance(1);



assessment.Questions.Questionset.Questiondetail.orderingdetail.addanswer_btn::click - (JavaScript, client)

xfa.form.assessment.Questions.Questionset.Questiondetail.orderingdetail._orderinganswer.addInstance(1);



I checked that the parent subform was set the flowed and the child was set to positioned. And I checked that I was allowing more than one instance of each.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top