These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

how to fill a field after changing another field in a multi occ form

cvanmech
Registered: Jan 9 2009
Posts: 17
Answered

Hi,

I have multi occurence form in which multiple record are showeds and/or added.

One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.

My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.

I tried point to the other occurences but this was not succesfull

See script

So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.

--------------------------------------------------------------------------------
data.p1.spare_parts.spare_parts::change: - (JavaScript, client)
--------------------------------------------------------------------------------
p1.spare_parts.DefectPart.rawValue = xfa.event.newText;

Can anyone help to solve this problem

Thanks

Christophe Van Mechelen

My Product Information:
LiveCycle Designer, Windows
cvanmech
Registered: Jan 9 2009
Posts: 17
change the script from Java to FORMCALC