Greetings:
BACKGROUND INFO: I am creating a Travel Application / Reimbursement form in which I need to make the reimbursement column of fields "hidden" (application phase) or "visible" (reimbursement phase). I am using many scripts like the one below to reference each field (labelled a,b,c,...aa,bb,cc...) placed under the click event of a button (I tried using a drop-down box to select "Travel Application" or "Reimbursement Request" but the results were not consistent).
if(xfa.resolveNode("#subform.EstimateofExpenses.Table2.Row1[1].b").presence=="hidden")then
xfa.resolveNode("#subform.EstimateofExpenses.Table2.Row1[1].b").presence="visible"
elseif(xfa.resolveNode("#subform.EstimateofExpenses.Table2.Row1[1].b").presence=="visible")then
xfa.resolveNode("#subform.EstimateofExpenses.Table2.Row1[1].b").presence="hidden"
endif
PROBLEM: One of my fields is set with the ability to have multiple instances. The show/hide scripts work on all fields except for the instances. I do not know how to reference the other instances in script...
If anyone could give some pointers on this, it would be much appreciated. Thanks!
Here an example in FormCalc.
1: Count the current instances of your repeatable object.
The benefit is a much slimmer script syntax.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs