Form submission in IE9

Hi All,
I test the coldfusion program in IE9. However, I find some problems.
I use javascript to add new input box (type=hidden, name="attach") in the form. Before submit the form, I use document.getElementsByName("attach") to check its existence. It shows me there is one item with the name "attach".
However, when I submit the form, it shows me error "cannot find form.attach".
I find that IE8 can pass it correctly. But it fails in IE9.
Can anyone help me to solve this problem?

Apparently there are issues with using appendChild in IE9 http://msdn.microsoft.com/en-us/library/ms535934%28v=vs.85%29.aspx
It looks like IE9 only supports it if you are running in standards mode.
There are actually several posts that talk about this issue.  Like this one http://stackoverflow.com/questions/436710/element-appendchild-chokes-in-ie
Just do a Google search for "javascript appendchild ie9" and start reading.  I'm sure you can find an example that works for you.

Similar Messages

  • Issue while starting a workflow using a form submission cq5

    Hi,
    I have followed the below mentioned tutorial and completed it.
    http://dev.day.com/docs/en/cq/current/workflows/create-models.html#par_reference
    Once done, I did try to start the workflow using a normal form submission, by giving workflow name in the "Start Workflow" box.
    Once clicked it will send the notification to my inbox, and when I double click, the form 1 will be displayed. Once submitted form two will be displayed.
    But when I submit the form 2, it thorws the below exception.
    But when I start the same workflow using the sidekick, It works perfectly fine. I am guessing that the {payload}.html is not getting set when the WF is initaited by a form submission.
    Could you please help with this. Thank you !
    Exception
    Not Found
    Cannot serve request to /content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480595_ 27.html in org.apache.sling.servlets.get.DefaultGetServlet
    Request Progress:
          0 (2013-02-21 17:38:19) TIMER_START{Request Processing}
          0 (2013-02-21 17:38:19) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
          0 (2013-02-21 17:38:19) LOG Method=GET, PathInfo=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/13614 48480595_27.html
          0 (2013-02-21 17:38:19) TIMER_START{ResourceResolution}
          1 (2013-02-21 17:38:19) TIMER_END{1,ResourceResolution} URI=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480 595_27.html resolves to Resource=JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27
          1 (2013-02-21 17:38:19) LOG Resource Path Info: SlingRequestPathInfo: path='/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/13614484 80595_27', selectorString='null', extension='html', suffix='null'
          1 (2013-02-21 17:38:19) TIMER_START{ServletResolution}
          1 (2013-02-21 17:38:19) TIMER_START{resolveServlet(JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27)}
          1 (2013-02-21 17:38:19) TIMER_END{0,resolveServlet(JcrNodeResource, type=sling:Folder, superType=null, path=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/136144848 0595_27)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
          1 (2013-02-21 17:38:19) TIMER_END{0,ServletResolution} URI=/content/usergenerated/mywebsite/en/products/product12/cq-gen1361441037192/1361448480 595_27.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
          1 (2013-02-21 17:38:19) LOG Applying Requestfilters
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
          1 (2013-02-21 17:38:19) LOG RedirectFilter did not redirect (MobileUtil.isMobileResource() returns false)
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter
          1 (2013-02-21 17:38:19) LOG Applying Componentfilters
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
          1 (2013-02-21 17:38:19) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
          1 (2013-02-21 17:38:19) TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
          1 (2013-02-21 17:38:19) LOG No renderer for extension html
          1 (2013-02-21 17:38:19) LOG Applying Error filters
          1 (2013-02-21 17:38:19) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
          1 (2013-02-21 17:38:19) TIMER_START{handleError:status=404}
          1 (2013-02-21 17:38:19) TIMER_END{0,handleError:status=404} Using handler /libs/sling/servlet/errorhandler/404.jsp
          2 (2013-02-21 17:38:19) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@88fc5d1), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@170420bb), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@1000e0cb), serializer=Config(type=htmlwriter, config={}))}
          2 (2013-02-21 17:38:19) TIMER_END{2,Request Processing} Dumping SlingRequestProgressTracker Entries
    ApacheSling/2.2 (Day-Servlet-Engine/4.1.24, Java HotSpot(TM) 64-Bit Server VM 1.7.0_07, Windows 7 6.1 amd64)

    Hi chamila,
        I never tried the example. Exception is not clear. Could you please post more stack trace from log files.
    Thanks,
    Sham

  • My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this: "Contact Form" has a new form submission.

    My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this:
    "Contact Form" has a new form submission.

    What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
    Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
    Thanks,
    Sanjit

  • Create a JSON file from a form submission

    Hi there, I am trying to create my first BC app but struggling to find a solution to create some data inside BC, I need to create a JSON file from a form submission that will be used as feed for my app.
    How I see it working:
    - Form submits details { Name, Email, Phone Number and a Date.} to a JSON file.
    - My app.js will read the JSON file and populate the content on a graph.
    Any other ideas will be much appreciated.
    I don't know if BC is has another way to host data from an app! but if you know pleas share.

    Hi Liam I must be explaining it wrong then, I am creating a BC App not an WebApp, At the moment I have my BC App generating the WebApp but once its done the JSON is generated somewhere in BC where i cannot fetch I tried using some directories to fetch it.
    I created the app this way:
    function tryWebAppCreate(data, xhr) {
        $.getJSON("booking-data/webapp.json")
            .done(function(webAppJsonDescriptor) {
                createWebApp(WEBAPP_NAME, webAppJsonDescriptor.webAppCustomFields, webAppJsonDescriptor.webAppSampleData, loadTeamMembers);   
            .fail(function() {
                systemNotifications.showError("Could not load webapp definition file");
    But now to fetch it i tried: ( replacing the braces with appropriate IDs)
    /api/v2/admin/sites/[site id]/webapps/[app id]/webappp.json
    My 3rd party App will connect to my BC App and from my app i have another call to send the JSON info.
    I just cant call it! maybe if you know how please let me know.

  • Struts portlet page going out of context during form submission

    I?m working on the Weblogic 8.1 version and have a struts portlet inside a portal alongwith the other portlets. When a html link is used, the jsps remain inside the portal context but during a form submission, the request is processed and the jsp is displayed out of the portal as a separate application.
    I?m using the request.getContextPath() in the jsp but still it is not workin.
    Is there anything I should be modifying or that has to make it work?
    What are the changes (if any) has to be made for the form submission in a jsp with regard to a Struts Portlet such that the form submission stays inside the parent portal context.

    The Images can be accessed from modified location
    PersonalDataPortlet-In-Portal.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107617&ver=0&rndm=1085565825500&name=PersonalDataPortlet-In-Portal.jpg
    PersonalDataPortlet-Search.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107618&ver=0&rndm=1085743844250&name=PersonalDataPortlet-Search.jpg
    PersonalDataPortlet-Result.jpg : http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_213205_4520_0_-213205_43/http%3B/PRODGADGET12.plumtree.com/collab/docman/download?fid=107619&ver=0&rndm=1085743844250&name=PersonalDataPortlet-Result.jpg

  • How do I attach a JavaBean to a HTML Form submission

    I found an example in the O'Reilly JavaServer Pages book that shows you how to pass a JavaBean from a JSP to a servlet.
    <jsp:useBean id="userInfo" scope="request" class="com.ora.jsp.beans.userinfo.UserInfoBean">
    <jsp:setProperty name="userInfo" property="*" />
    </jsp:useBean>
    <jsp:forward page="/myServlet" />
    Then in the servlet, you do:
    UserInfoBean userInfo = ( UserInfoBean )request.getAttribute("userInfo");
    I want to do almost the exact same thing...but I don't want to forward the request. I want to pass the JavaBean along as part of an HTML form submission. Can anyone help me out with this? Thanks.

    Assuming that you have setup your environment correctly and you have a web application server like Tomcat running.
    Since you didn't provide the code for the bean I created my own. You can change the code any way you want.
    Say UserInfoBean is :
    package test17;
    public class UserInfoBean {
        String firstName;
        String lastName;
        public UserInfoBean() {
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
    }And say you have a JSP page like this:
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
      <head><title></title></head>
      <body>
      <jsp:useBean id="userInfo" scope="request" class="test17.UserInfoBean">
      <jsp:setProperty name="userInfo" property="*" />
      </jsp:useBean>
      <form action="index.jsp" method="POST">
          <input type="text" name="firstName" value="${userInfo.firstName}"/>
          <br/><br/>
          <input type="text" name="firstName" value="${userInfo.lastName}"/>
          <br/><br/>
          <input type="submit" name="submit" value="submit"/>
      </form>
      </body>
    </html>If you access the JSP page like this:
    http://localhost:8080/p/test17/index.jsp?firstName=George&lastName=W
    then it passes in the request parameter from the query string and populates the form.
    Once the form is populated if you submit the form , data is transmitted to the next page , and you can access it via request.getParameter.
    Is this the solution you are looking for?

  • Contact Form Submission Error

    I've got a website on which there is a "Contact Us" form. I have set the submit button to send the form to the email address [email protected] This is the address associated with my Adobe ID. However, instead of receiving a simple form submission, I get the e-mail that I've attached below.

    Have you heard about this workaround? I attempted it, but it didn't work for me.
    "You then need to edit the following: ( line 103 )
    function get_email_headers($to_email, $form_email) {
      $headers = 'From: ' . $to_email . PHP_EOL;
      $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
      $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
      $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
      return $headers;
    This needs changing to the following:
    function get_email_headers($to_email, $form_email) {
    $headers = 'From: ' . $to_email . PHP_EOL;
    $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
    $headers .= 'MIME-Version: 1.0' . PHP_EOL;
    $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
    $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
    return $headers;
    The form will now work with hotmail, Gmail etc etc
    Hope this helps anyone having the same problem "

  • SSL certificate - securing web form submission - privacy, usability and Adobe's UX design ethos

    Hi,
    (newbie alert)
    I'm just learning BC and it doesn't seem too bad. One problem I have is the shared certificate and I wonder if there are plans to address this shortcoming in the short term?
    Privacy is a growing concern in Australia (in addition to specific new legal requirements). The web forms that we will use are likely to contain personal information. These should be secured by a certificate.
    If you accept that most end users are not tech-savvy then you might agree with the premise that "Users should not see different domain names in the address bar when submitting personal information".
    Switching domains, multiple times for web forms submission or ecommerce, is in my view, a pretty simplistic and business-centric (as opposewd to user-centric) design approach to the task.
    How does Adobe explain their committment to the end-user and their system design decisions regarding the shared certificate situation? I'd be interested to know if Adobe believes this is a "good-enough" solution based on a range of factors, especially expediency for Adobe. Or are there concrete plans to "fix" this (in my view) sub-optimal situation in the near-term?
    Happy to discuss further.
    Cheers
    BCStarter

    Hey there,
    It is an integral part of how the system works in terms of the system itself and the business model, So it wont be any way to change it any time soon without a big change from BC on how BC works.
    Web forms in BC can be secured with a certificate. Many systems change domain for secure subdomains etc, most people are not tech savy and they actually do not even notice things like change of domain, most actually do not check the SSL certificate. You can even just put graphics of lock symbols and say your form is secure, even when it is not and people fill it in. (Studies have shown this)
    With many eCommerce sites, booking sites etc under my belt, with good UI Design and site flow and good information about being secure etc to the end user - No issues with clients and clients happy with the sales they get through. The domain thing has never been an issue.
    I seen people complain about it on the forums before but looking at the sites, its the user experience flow of the site itself being the primary problem.
    Yep, nice if it was all under the same domain, but this will not likely change in BC especially any time soon, but a site built well - this really does not matter that much, Google for example even offers anaytlitcs settings to work cross domain so they fully well know things like this work on modern websites.

  • PHP form submission Problem

    Dear all,
    PHP enquiry form submission some error is comes
    "Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/en45/send_form_email.php on line 11"
    Please help me
    WEBLINK
    PHP goes like this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>PHP Form</title>
    </head>
    <body><?php
    if(isset($_POST['email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['first_name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['telephone']) ||
                        !isset($_POST['company_name']) ||
            !isset($_POST['comments'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['first_name']; // required
        $email_from = $_POST['email']; // required
        $telephone = $_POST['telephone']; // not required
              $last_name = $_POST['company_name']; // required
        $comments = $_POST['comments']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$first_name)) {
        $error_message .= 'The First Name you entered does not appear to be valid.<br />';
      if(!preg_match($string_exp,$company_name)) {
        $error_message .= 'The Last Name you entered does not appear to be valid.<br />';
      if(strlen($comments) < 2) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "First Name: ".clean_string($first_name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Telephone: ".clean_string($telephone)."\n";
              $email_message .= "Company Name: ".clean_string($company_name)."\n";
        $email_message .= "Comments: ".clean_string($comments)."\n";
    /* Redirect visitor to the thank you page */
    header('Location:gt.html');
    exit();
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    <!-- include your own success html here -->
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>
    </body>
    </html>

    some error now
    Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/send_form_email.php on line 5
    My form like this
    <form name="contactform" method="post" action="send_form_email.php">
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="first_name" maxlength="50" size="30" value="Name*:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="email" maxlength="80" size="30" value="E-mail*:">
                                                           </div>
                                                                          <div class="clear"><!-- --></div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="telephone" maxlength="30" size="30" value="Phone.:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="company_name" maxlength="50" size="30" value="Company:">
                                                            </div>
                                                                          <div class="clear"><!-- --></div>
                                                                          <div class="field textarea"><div>
                                                                            <textarea  name="comments"></textarea>
                                </div></div>
                                                                          <div class="submit">
                                                                                    <p>* - Required fields</p>
                                                                                    <input type="submit" value="Send" />
                                                                          </div>
                                                                </form>

  • How to prevent dupilcate form submission in JSF 1.x

    Hi All
    How to prevent dupilcate form submission in JSF 1.x application. As of now ,when the user clicked the submit button two times , application inserts 2 records in database.
    Please suggest how to prevent dupliacte form submission without using Javascript. Kindlly share examples if any.
    Regards,
    DEV

    Your problem is not really double submission but the fact that your application allows double insertion. The fix is functionally easy but technically very cumbersome: before inserting, check if the data already exists. If you build in such a guard you also protect against other methods of causing a resubmission, such as the browser back button.
    PS: what's the deal with the no javascript limitation? You do realize that when you use JSF you're tanking your application full of javascript, right?

  • Change 'new form submission' text when receiving email from contact form.

    Hi,
    One of our clients has asked us to change the text they receive when they get an email from their contact form.
    It currently says: 'new form submission'
    they want it to say: 'West of the Moon ~ Ayr ~ Website Enquiry'
    We have tried changing the name of the form but this only changes the subject in the email not the wording on the email. Is there any way to do this?

    Hi Richard,
    Please check the php script to which the web form submits to and then open that with a text editor and edit the verbiage that you want to there.
    PS - You will need to make these changes after every export from Muse as Muse will override them on every export/upload.
    - Abhishek Maurya

  • How do you prevent form submission if Spry validation fails?

    After reviewing and implementing the SpryValidationConfirm and SpryValidationPassword widgets on a test page, I am unable to prevent the form from being submitted if the validation of either widget fails.
    A feature of both widgets is "Blocking form submission if the password criteria is not met".
    I ihave included my code below:
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <cfform method="post" action="result.cfm">
      <span id="sprypassword1">
        <label>Password
          <cfinput type="password" name="mypassword1" id="mypassword1" size="30" />
        </label>
        <span class="passwordRequiredMsg">The password cannot be empty</span>
        <span class="passwordMinCharsMsg">The password must contain at least 15 characters</span>
        <span class="passwordInvalidStrengthMsg">The password must contain 2 special characters, 2 uppercase characters, 2 lowercase characters, and 2 numbers</span>
      </span>
      <span id="spryconfirm1">
        <label>Confirm Password
          <cfinput type="password" name="mypassword2" id="mypassword2" size="30" >
        </label>
        <span class="confirmRequiredMsg">A value is required</span>
        <span class="confirmInvalidMsg">The values don't match</span>
      </span>
      <cfinput type="submit" name="submit" value="Go to the next page">
    </cfform>
    <script type="text/javascript">
    <!--
    var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:15, minUpperAlphaChars:2, minSpecialChars:2, minNumbers:2, minAlphaChars:2}, {validateOn:["blur", "change"]});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "mypassword1", {validateOn:["blur", "change"]});
    //-->
    </script>

    Thanks so much!
    I removed the <cf prefixes from the cfform and cfinput tags and form now does not submit on invalid data.
    I did not rename the 'password' fields as I think there needs to be 2 inputs that can be compared for the confirmation widget to function.
    I have attatched the working code below:
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <form method="post" action="result.cfm">
      <span id="sprypassword1">
        <label>Password
          <input type="password" name="mypassword1" id="mypassword1" size="30" />
        </label>
        <span class="passwordRequiredMsg">The password cannot be empty</span>
        <span class="passwordMinCharsMsg">The password must contain at least 15 characters</span>
        <span class="passwordInvalidStrengthMsg">The password must contain 2 special characters, 2 uppercase characters, 2 lowercase characters, and 2 numbers</span>
      </span>
      <span id="spryconfirm1">
        <label>Confirm Password
          <input type="password" name="mypassword2" id="mypassword2" size="30" >
        </label>
        <span class="confirmRequiredMsg">A value is required</span>
        <span class="confirmInvalidMsg">The values don't match</span>
      </span>
      <input type="submit" name="submit" value="Go to the next page">
    </form>
    <script type="text/javascript">
    <!--
    var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:15, minUpperAlphaChars:2, minSpecialChars:2, minNumbers:2, minAlphaChars:2}, {validateOn:["blur", "change"]});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "mypassword1", {validateOn:["blur", "change"]});
    //-->
    </script>
    Again thanks so much!

  • Mandatory check box before form submission

    I want users to accept my 'Terms & Conditions' statement on an application form before they are allowed to submit it by the e-mail button.
    I want to place a required check box which produces an error message and prevents form submission until it is checked.
    I have read hordes of the postings but none of the solutions seem to do quite what I want.
    Any advice would be gratefully received

    Hi,
    I used the script you provided in the above post, and it worked perfectly, but my situation is a little different: I have two checkboxes, but I only want the message to appear if one of them isn't selected. If the other checkbox is selected, I need the fake submit button to go ahead and generate the email to send the form. I'm new to LiveCycle Designer, and I'm unsure of how to correctly use the "if" and "else" javascript. I need the message to appear when clicking the WebExYes checkbox, but I don't want it to appear when the user clicks the IntercallCheckBox.
    Here's what my script looks like so far:
    if 
    (form1.subForm1.WebEx.WebExYes.rawValue != "1"){ xfa.host.messageBox("You must read the FHEG WebEx Usage Standards and select the Yes checkbox before submitting.");
    else 
    { SubmitButton.execEvent("click");
    if 
    (form1.subForm1.AccountRequest.IntercallCheckBox.rawValue != "1")
    else 
    {SubmitButton.execEvent ("click");
    Can someone tell me what I'm doing wrong or if I can even make this happen?
    Thank you,
    Hannah

  • How to add landing page s-parameter to a form submission?

    Hi,
    Really hoping somebody can help me. This is something I have seen used in many of my previouse roles and I would like to introduce it to my current position but am a bit lost. We develop our website inhouse and are currently in the process of migrating it to Dreamweaver CSS, which I am unfamiliar with.
    What I want to do is introduce a tracking code that allows me to see excatly where the original click came from on all Email submissions (conversions).
    What i would like to happen is, when a lead form from our website is submitted there is a hidden default field that comes through to us on the Email submission. That field should (if all goes to plan) pull the S parameter from the URL of the landing page. This S parameter is a code that I have generated and placed in the destination URL of all PPC ads and campaigns (as below)
    I believe I have the correct piece of script ,  I’m just not sure how to place it and what I need to amend within it .
        <form action="jspostto.htm" method="get">
            <input type="hidden" id="hiddenParameterValue" name="hiddenParameterValue" />
            <input type="submit" value="Submit" />
        </form>
        blah<br />
        <script language="javascript" type="text/javascript">
            document.getElementById("hiddenParameterValue").value = getParam("f");       
        </script>
    An example of the kind or code I am putting in is www.sapphiresystems.com/uk/sunsystems/index.htm?s=GUKAOOH02&K={keyword} in the destination URLs of PPC campaigns and Facebook links to the website as such www.sapphiresystems.com/sapb1/index.htm?s=FBSAPBOX.
    Really appreciate any help or insight you can offer,
    Many thanks
    Kiti

    Hi Both,
    Apologies, yes we are on PHP,
    This is what is really throwing me off .... i don't know what WEBBOT is? I have posted everything that was between form tags, just incase i let anything important out.
    Again really appreciate all the help and advice,
    Thanks , Kiti
    <!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script language="JavaScript" type="text/javascript"><!--
    function FrontPage_Form1_Validator(theForm)
      if (theForm.Name.value == "")
        alert("Please enter a value for the \"Name\" field.");
        theForm.Name.focus();
        return (false);
      if (theForm.Email.value == "")
        alert("Please enter a value for the \"Email\" field.");
        theForm.Email.focus();
        return (false);
      if (theForm.Heard_Sapphire.selectedIndex < 0)
        alert("Please select one of the \"Heard_Sapphire\" options.");
        theForm.Heard_Sapphire.focus();
        return (false);
      if (theForm.Heard_Sapphire.selectedIndex == 0)
        alert("The first \"Heard_Sapphire\" option is not a valid selection.  Please choose one of the other options.");
        theForm.Heard_Sapphire.focus();
        return (false);
      return (true);
    //--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="../../_derived/nortbots.htm" onsubmit="location.href='../../_derived/nortbots.htm';return false;" language="JavaScript" name="FrontPage_Form1" webbot-onsubmit="return FrontPage_Form1_Validator(this)" webbot-action="--WEBBOT-SELF--">
        <!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="[email protected]" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Sapphire Website - SunPlanning demo request" S-Builtin-Fields U-Confirmation-Url="thanks_demo.htm" --><input type="hidden" name="VTI-GROUP" value="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
        <table border="0" width="724" id="table6" height="681" cellspacing="0" cellpadding="0">
         <!-- MSTableType="nolayout" -->
         <tbody><tr>
          <td bgcolor="#FFFFFF" colspan="8" height="145" valign="top">
       <p style="margin-right: 25px; margin-top: 0; margin-bottom: 0; margin-left:18px; line-height:14pt">
       <b><font face="Arial" style="font-size: 14pt" color="#003366">Demo
       SunPlanning</font></b></p>
       <p style="margin-right: 25px; margin-top: 0; margin-bottom: 0; margin-left:18px; line-height:14pt"> 
       </p>
       <p style="margin-right: 25px; margin-top: 0; margin-bottom: 0; margin-left:18px; line-height:14pt">
       <font style="FONT-SIZE: 8pt" face="Arial">Please complete this short
       form and, upon receipt of your request, we’ll send you through your
       a link to your online demonstration. </font></p>
       <p style="margin-right: 25px; margin-top: 0; margin-bottom: 0; margin-left:18px; line-height:14pt"> 
       </p>
       <p style="margin-right: 25px; margin-top: 0; margin-bottom: 0; margin-left:18px; line-height:14pt">
       <font face="Arial">
       <span style="font-size: 8.0pt; font-style:italic">We respect your
       privacy. We do not share your details with anyone outside Sapphire.
       </span></font></p>
          </td>
          </tr>
         <tr>
          <td bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> </td>
          <td colspan="2" bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" height="19" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" height="19" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" height="19" style="border-top: 1px dotted #C0C0C0"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <span style="font-weight: 700">
          <font face="Arial" style="font-size: 8pt" color="#003366">
          Title</font></span><font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">:</font></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
           <select size="1" name="Title0" style="font-family: Arial; font-size: 8pt; background-color: #F4F4F4">
          <option>Mr</option>
          <option>Mrs</option>
          <option>Miss</option>
          <option>Ms</option>
          <option>Dr</option>
          </select></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Name:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
          <font color="#003366">
           <!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="Name" size="35" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4">  </font>
          <font color="#FF0000" face="Arial" style="font-size: 8pt; ">
          * Required Field</font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Title:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="22">
          <font color="#003366">
           <input type="text" name="Position" size="35" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Company:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="22">
          <font color="#003366">
           <input type="text" name="Company" size="35" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Email Address:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
          <font color="#003366">
           <!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="Email" size="35" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"> </font>
          <font color="#FF0000" face="Arial" style="font-size: 8pt; font-weight: 700"> 
          </font><font color="#FF0000" face="Arial" style="font-size: 8pt; ">
          * Required Field</font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Telephone:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="22">
          <font color="#003366">
           <input type="text" name="Telephone" size="20" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></font></td>
         </tr>
         <tr>
          <td colspan="8" bgcolor="#FFFFFF" height="19"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left" style="border-top: 1px dotted #C0C0C0"> 
          </td>
          <td bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> 
          </td>
          <td bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" style="border-top: 1px dotted #C0C0C0"> 
          </td>
          <td bgcolor="#FFFFFF" height="20" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" height="20" style="border-top: 1px dotted #C0C0C0"> </td>
          <td bgcolor="#FFFFFF" height="20" style="border-top: 1px dotted #C0C0C0"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Address 1:</font></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
          <font color="#003366">
           <input type="text" name="Address1" size="30" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <span style="font-weight: 700">
          <font face="Arial" style="font-size: 8pt" color="#003366">
          Address 2</font></span><font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">:</font></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
          <font color="#003366">
           <input type="text" name="Address2" size="30" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"> </font></td>
          </tr>
          <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Town:</font></td>
          <td colspan="6" bgcolor="#FFFFFF" height="22">
          <font color="#003366">
           <input type="text" name="Town" size="22" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></font></td>
           </tr>
           <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
                <td bgcolor="#FFFFFF" align="left">
          <font face="Arial" style="font-size: 8pt; font-weight: 700" color="#003366">
          Post Code:</font></td>
          <td colspan="6" bgcolor="#FFFFFF" height="23">
          <font color="#003366">
           <input type="text" name="PostCode" size="10" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"> </font>
          <font color="#FF0000" face="Arial" style="font-size: 8pt; font-weight: 700"> </font></td>
             </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> 
          </td>
          <td bgcolor="#FFFFFF" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> 
          </td>
          <td bgcolor="#FFFFFF" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> </td>
          <td bgcolor="#FFFFFF" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> 
          </td>
          <td bgcolor="#FFFFFF" height="20" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> </td>
          <td bgcolor="#FFFFFF" height="20" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> </td>
          <td bgcolor="#FFFFFF" height="20" style="border-bottom: 1px dotted #C0C0C0; border-top-style:none; border-top-width:medium"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF" align="left"> </td>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF" valign="top"> 
          </td>
          <td bgcolor="#FFFFFF" valign="top" align="left">
          <p>
          <font face="Arial" color="#003366" style="font-size: 8pt; font-weight: 700">
          Notes/Additional
          Info:</font></p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="84">
          <p>
           <textarea rows="5" name="Notes" cols="40" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4"></textarea></p></td>
         </tr>
         <tr>
          <td colspan="8" bgcolor="#FFFFFF" height="19"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px dotted #C0C0C0; border-bottom-width: 1px"> 
          </td>
          <td colspan="6" bgcolor="#FFFFFF" height="22" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px dotted #C0C0C0; border-bottom-width: 1px"> 
          </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> 
          </td>
          <td bgcolor="#FFFFFF" align="left">
          <p>
          <font color="#003366" face="Arial" style="font-size: 8pt; font-weight: 700">
          How did you find us? </font>
          </p></td>
          <td colspan="6" bgcolor="#FFFFFF" height="22">
          <font color="#003366" face="Arial" style="font-size: 8pt; font-weight: 700">
           <!--webbot bot="Validation" b-value-required="TRUE" b-disallow-first-item="TRUE" --><select size="1" name="Heard_Sapphire" style="font-family: Arial; font-size: 8pt; background-color:#F4F4F4">
          <option>Please Select...</option>
          <option>Advertising</option>
          <option>Direct Mail</option>
          <option>Email Promotion</option>
          <option>Other</option>
          <option>Press Article</option>
          <option>Recommendation</option>
          <option>Web Search - Google</option>
          <option>Web Search - Bing</option>
          <option>Web Search - Other</option>
          <option>Web Search - Yahoo!</option>
          </select> </font>
          <font color="#FF0000" face="Arial" style="font-size: 8pt; ">
           * Required Field</font></td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF" align="left"> </td>
          <td bgcolor="#FFFFFF"> </td>
          <td colspan="2" bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
          <td bgcolor="#FFFFFF" height="19"> </td>
         </tr>
         <tr>
          <td bgcolor="#FFFFFF"> </td>
          <td bgcolor="#FFFFFF" align="left"> </td>
          <td bgcolor="#FFFFFF" colspan="6">
          <input type="submit" value="Submit Enquiry" name="Enquiry" style="float: left; font-size:8pt; font-family:Arial; color:#FFFFFF; font-weight:bold; background-color:#FF6600"></td>
         </tr>
         <tr>
          <td width="17"> </td>
          <td width="158" align="left"></td>
          <td width="136"></td>
          <td width="34"></td>
          <td width="137"></td>
          <td height="1" width="40"></td>
          <td height="1" width="174"></td>
          <td height="1" width="30"></td>
         </tr>
         </tbody></table>
       </form>

  • Results from a form submission does not keep the fields in order when I get the email

    I created a form and it works fine but when I get the email
    back the fields are out of the tab order or out of wack meaning
    they are not in order that I set the acceptabilities to.
    Is this something in the Action script I have to add and what
    would it look like or do I need to edit the CGI script?
    I can provide a link or script let me know.
    Thanks

    This is action script 3.0 Flash CS3
    Below is what I receive back after I test it but it is not in
    order. I guess I assumed that if the tab order is correct and the
    are layout in that order and the code in the form is in order it
    would come back the same way. Mostly I am trying to narrow down the
    problem and my guess is the cgi script or am I wrong? I have
    attached the code for the form.
    Thank You for you time
    Form email submission results:
    Below is what you submitted on Tuesday, February 19, 2008 at
    10:35:08
    list:
    phone:
    address:
    comments:
    city:
    state:
    zip:
    name:

Maybe you are looking for

  • Infopath form taking long time to load sql data

    In infopath form having with multple views. In one of the view SQL Data will be loaded on selection of dropdown to repeating table.  If it is lessthan 1000 items its working, if it is morethan 1500 items form will hanging for 15-20 mins.  Form is dev

  • Accessing Solution Manager CHARM Via SAP CRM

    Hi Is it possible to accces charm of soultion manager via SAP CRM If so how does it work and documentation are welcomed Thanks in advance R-K

  • [Locked] Replacing the Deprecated target Attribute

    QUESTION:  How does one replicate the behavior of the target attribute now that it has been deprecated?  My website requires that all pages that are not contained within my website open to new windows. DISCUSSION:  The behavior that I am trying to re

  • DW CS3 Spry Question

    I replaced the navigation I originally did with a spry bar. Works and looks great on a Mac but in IE8 the dropdown and spacing is very different. link is below, any suggestions? http://pyosports.com/soccerspry.html rder

  • Multi level categorization component integrated into TASK

    Hello Experts, We are working on a CRM 7.0 EHP1 implementation project, one of the business requirements is multi level categorization on task object. The How-To Guide Add multilevel categorization component of the Interaction Record to other objects