Javascript Wildcard for Repeating Row
hi there!
i have created dynamic form using livecycle designer es3. in 1 subform have set table text field. field nested within table in row titled "reasons" , row allowed repeat (figure 1) if user clicks "add reason" button (figure 2).
figure 1
figure 2
notice in figure 2 "reason" text field has red border indicating field required.
elsewhere in form, there check box. if user checks check box, "reason" field in figure 2 becomes disabled, nullified, , no longer mandatory. however, when user clicks "add reason" , there more 1 instance of "reason" text field (indicated below in figure 3), checking aforementioned check box not work. therefore, need javascript "wildcard" account repeating row, , subject row same actions (disabling, nullifying, removing mandatory requirement) first row has.
figure 3 (the check box mentioned above has been checked, 2nd instance of "reason" below not respond javascript works fine on first instance of "reason")
i know formcalc can use [*] wildcard account unknown instances of object, , have used function elsewhere in form, not know how same type of function javascript. please help.
thank you!
i've never seen working wildcard in javascript. you'll need for loop cycle through, think. if i'm wrong, i'm sure correct me. in meantime, try this.
if (cbnotneeded.rawvalue == 1){
for (var = 0; i<table1.row.instancemanager.count; i++){
var r = "table1.row["+i+"]";
xfa.resolvenode(r).border = "0.069in";
//and whatever else need set
}
}
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment