is possible make form when form loads user puts in personal info (like name etc) on page 1 , page has 2 radio buttons; depending on option user chooses, new page opens up. if user clicks on rb1, page 2 opens ; if user chooses rb2, page 3 shows - personal info filled in. (from first page user entered in beginning)
is possible implement this?
thanks
marleen
is possible implement this?
thanks
marleen
sure is!
since top-level form object ("form1" default) flowed subform, pages have instance managers can use add or remove instances of them.
by setting page 2 , page 3 subforms repeatable (check repeat subform each data item box on object palette's binding tab) , having no initial instance ( initial count set 0 (0)), page 2 , page 3 won't exists @ first. need after code on each radio button either remove instance of page 2, add instance of page 3 , populate fields on page 3 information on page 1 or vice-versa other radio button adds instance of page 2 form.
here's example of kind of javascript use on form has single "name" text field on pages , populates field on page that's added form depending on radio button user picks (on radio button's click event):
the attached form shows code in action.
stefan
adobe systems
since top-level form object ("form1" default) flowed subform, pages have instance managers can use add or remove instances of them.
by setting page 2 , page 3 subforms repeatable (check repeat subform each data item box on object palette's binding tab) , having no initial instance ( initial count set 0 (0)), page 2 , page 3 won't exists @ first. need after code on each radio button either remove instance of page 2, add instance of page 3 , populate fields on page 3 information on page 1 or vice-versa other radio button adds instance of page 2 form.
here's example of kind of javascript use on form has single "name" text field on pages , populates field on page that's added form depending on radio button user picks (on radio button's click event):
// remove page 3 if exists
if (form1._page3subform.count > 0)
form1._page3subform.setinstances(0);
// add page 2
form1._page2subform.addinstance(0);
// populate name field on page value of name field on page 1 (this page)
form1.page2subform.p2name.rawvalue = p1name.rawvalue;
the attached form shows code in action.
stefan
adobe systems
More discussions in LiveCycle pre-ES (6.x and 7.x) discussions
adobe
Comments
Post a Comment