3 Replies Latest reply: Feb 21, 2008 11:23 AM by Newsgroup_User RSS

    Created flash form in 3.0 worked ok then tried 2.0 it doesn't

    INVT Community Member
      I created a form in AS3 and it worked ok except the tab order of the form field when the email returned was not correct. So I thought maybe I needed to create it in AS 2 to make it easier and more to what I am used to which is not much. I am trying to understand and I thought if someone could look at what is working and compare it to what is not well then I could fix my problem. I tried getting some help with the tab order in the AS 3 but nobody has been able to help me. I do not get an error with the AS 2 but the e-mail does not come through. I am validating the fields in the AS 2 script and it actually gets to the welcome screen in my flash but for some reason it does not get to the server. I will be going over it again.

      Any help would be appreciated.

      Thanks,

      Hugo
        • 1. Re: Created flash form in 3.0 worked ok then tried 2.0 it doesn't
          Newsgroup_User Community Member
          I think you want to control the order of the fields in the email. If I'm
          wrong, ignore the rest of this message.

          Assuming you're using FormMail by Matt Wright, do you know if your version
          supports a sort field (version 1.4+)?

          If so, you can add a sort field to the URLVariables (AS3). i.e.

          variables.sort = "order:name,address,etc..."
          variables.name = name_txt.text;
          variables.email = email_txt.text;
          variables.address = address_txt.text;
          variables.city = city_txt.text;
          variables.state = state_txt.text;
          variables.list = list_txt.text;
          variables.zip = zip_txt.text;
          variables.phone = phone_txt.text;
          variables.comments = comments_txt.text;

          OR (AS2)

          gatherForm.sort = "order:visitor_name,visitor_address,etc..."
          gatherForm.visitor_name = contactForm.userName.text;
          gatherForm.visitor_address = contactForm.userAddress.text;
          gatherForm.visitor_city = contactForm.userCity.text;
          gatherForm.visitor_state = contactForm.userState.text;
          gatherForm.visitor_zip = contactForm.userZip.text;
          gatherForm.visitor_select = contactForm.userSelect.text;
          gatherForm.visitor_phone = contactForm.userPhone.text;
          gatherForm.visitor_email = contactForm.userEmail.text;
          gatherForm.visitor_comments = contactForm.userComments.text;



          • 2. Re: Created flash form in 3.0 worked ok then tried 2.0 it doesn't
            INVT Community Member
            Thank you this worked perfectly.

            I appreciate your time!