Avatar

Level 1

Can someone help me write a script? What I have is a dropdown list (named Relation1) with three options; Self, Spouse and Significant Other. A subform1 and a Subform2, each of the subforms have the same fields. The end-user would first fill out all the fields in the subfrom1, then they would come to the dropdown list 'Relation1' - say the select 'Self', what needs to happen is the fields in subform2 prepopulate with the end-users info they typed into the fields of subform1.

Here is what my Hierarchy looks like:

Form1

   Page1

      PatientInfromation (Subform1)

          FirstName

          LastName

          Address    

          DOB

          Gender ...etc...

      Relation1 - dropdown list

          Self

          Spouse

          Sig.Other

      PrimaryInurance (Subform2)

          FirstName1

          LastName1

          Address1

          DOB1

          Gender1....etc...

I am having major problems with figuring out how to write these up so if someone could give me a basic code, I can figure out the rest I'm sure. I also don't know if I should use FormCalc or JavaScript. I have tried and tried to figure it on my own by reading all the questions on the forum for the last 7 HOURS.

Any help would be much appreacited!!