3 Replies Latest reply on Feb 24, 2012 10:00 AM by ddeden

    Checkbox - Same as Street Address

    ddeden

      I've tried searching through the discussions for an answer to this question, but I haven't found one, so I'm hoping it will be a quick, simple answer. And thanks in advance to anyone willing to help.

       

      I'm creating a form which asks for the street address and the mailing address of the applicant. I've included a checkbox for the applicant to use if their mailing address is the same as their street address. I've added the following script to the mouseUp event of the checkbox:

       

      if (getField("SameAsStreet").value=="Yes")

      getField("MailingAddress").value = getField("StreetAddress").value

      else getField("MailingAddress).value = "";

       

      This script does not work when I enter data into the street address field then check the checkbox.

       

      Any ideas?