Creating a button to add and remove a section
hi everyone,
i have been asked create form using design es has element will added click of button. learn created simple document. 2 objects button control object added , the object.
here how file structured.(if terminology wrong please feel free correct me)
on form have main subform called "main" child subform of "main subform called "dyn". have button object on main subform , have object (a drop down list) added on "dyn" subform.
what did far put focus on button , in scripting window i selected "click" "show" drop down , selected javascript the "language" drop down. added following syntax.
// invoke instance manager add 1 instance of dyn subform.
main._dyn.addinstance(1);
i saved work @ point , went preview pdf. when click the button nothing happens.
any on appreciated. have attached pdf if it helps.
thanks
greg
hi greg,
unfortunately form queued (a.k.a. caught in virus scanner) can't take look. witnessing in form commonly result of failing save form dynamic pdf (at least common me). if form not defined , saved dynamic pdf, instance manager or other methods of show/hiding objects not work.
which leads me this...i not sure of requirements, if need show/hide dropdown list, using subform , instance manager may overkill. can change presence property of dropdown make visible or invisible. attached sample performs follows:
when click button labelled 'show dropdown'....
the dropdown appears , caption on button changes 'hide dropdown'. toggle effect.
steve
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment