Skip navigation
GorgeousConcepts
Currently Being Moderated

Edit Profile Form not posting to CRM

Jun 6, 2012 7:27 AM

Tags: #forms #troubleshooting #contacts #customers #crm

For some reason my edit profile page is not sending the information to the Customer CRM in either UI.

 

Once the form has been submitted, a box pops up saying something like "your form is being sent" when I click on OK the box goes and the form doesn't change.

 

It sounds like some of my code is wrong somewhere, does anyone know what should be in the code please?  I think it is something to do with the JS down the bottom.

 

My code looks like this:

 

<form name="catupdatedetailsformform3349" method="post" onsubmit="return checkWholeForm3349(this)" action="/MemberProcess.aspx">

 

  <td><label for="Title">Title</label><br />

                <select name="Title" id="Title" class="cat_dropdown_smaller">

                <option value="635720">DR</option>

                <option value="635719">MISS</option>

                <option value="635716" selected="selected">MR</option>

                <option value="635717">MRS</option>

                <option value="635718">MS</option>

                </select></td>

            </tr>

            <tr>

                <td><label for="FirstName">First Name</label><br />

                <input type="text" name="FirstName" id="FirstName" value="{module_firstname}" class="cat_textbox" maxlength="255" /> *</td>

            </tr>

            <tr>

                <td><label for="LastName">Last Name</label><br />

                <input type="text" name="LastName" id="LastName" value="{module_lastname}" class="cat_textbox" maxlength="255" /> *</td>

            </tr>

            <tr>

                <td><label for="EmailAddress">Email Address</label><br />

                <input type="text" name="EmailAddress" id="EmailAddress" value="{module_emailaddress}" class="cat_textbox" maxlength="255" /> *</td>

            </tr>

            <tr>

                <td> </td>

            </tr>

            <tr>

                <td><label for="Username">Username</label><br />

                <input type="text" name="Username" id="Username" value="{module_username}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td><label for="Password">Password</label><br />

                <input type="password" name="Password" id="Password" value="{module_password}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td><label for="PasswordConfirm">Confirm Password</label><br />

                <input type="password" name="PasswordConfirm" id="PasswordConfirm" value="{module_password}" class="cat_textbox" maxlength="255" /></td>

            </tr>

        </tbody>

    </table>

    </div>

    <div class="fieldset">

    <h2 class="legend">

    Other Data

    </h2>

    <table cellspacing="0" cellpadding="2" border="0" class="webform">

        <tbody>

            <tr>

                <td><label for="HomePhone">Home Phone Number</label><br />

                <input type="text" name="HomePhone" id="HomePhone" value="{module_homephone}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td><label for="CellPhone">Mobile Number</label><br />

                <input type="text" name="CellPhone" id="CellPhone" value="{module_cellphone}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td> </td>

            </tr>

            <tr>

                <td><label for="BillingAddress">Address</label><br />

                <input type="text" name="BillingAddress" id="BillingAddress" value="{module_billingaddress}" class="cat_textbox" maxlength="500" /></td>

            </tr>

            <tr>

                <td><label for="BillingCity">City</label><br />

                <input type="text" name="BillingCity" id="BillingCity" value="{module_billingcity}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td><label for="BillingState">County</label><br />

                <input type="text" name="BillingState" id="BillingState" value="{module_billingstate}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

                <td><label for="BillingZip">Postcode</label><br />

                <input type="text" name="BillingZip" id="BillingZip" value="{module_billingzip}" class="cat_textbox" maxlength="255" /></td>

            </tr>

            <tr>

               

               <td><label for="BillingCountry">Country</label><br />

                <select name="BillingCountry" id="HomeCountry" class="cat_dropdown">

                <option value=" ">-- Select Country --</option>

                <option value="GB" selected="selected">UNITED KINGDOM</option>

                </select></td>

 

            </tr>

            <tr>

                <td> </td>

            </tr>

        </tbody>

    </table>

    </div>

    <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>

    <script type="text/javascript" src="/CatalystScripts/Java_DatePicker.js"></script>

    <script type="text/javascript">

//<![CDATA[

document.getElementById('Title').value = '{module_title}'; document.getElementById('BillingCountry').value = '{module_billingcountry}'; document.getElementById('BillingCountry').value = '{module_billingcountry}'; var submitcount3349 = 0;function checkWholeForm3349(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name");if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if (theForm.Password && theForm.PasswordConfirm) { if (theForm.Password.value.length > 0 || theForm.PasswordConfirm.value.length > 0) { if (theForm.Password.value != theForm.PasswordConfirm.value) why += appendBreak("- Password and its confirmation do not match."); if (theForm.Password.value.length < 6) why += appendBreak("- Password must be 6 characters or longer."); }} if(why != ""){alert(why);return false;}if(submitcount3349 == 0){submitcount3349++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}

//]]>

</script>

    <div class="buttons-set">

    <p class="required">

    * Required Fields

    </p>

    <input type="submit" class="cat_button" value="Submit" id="catupdatedetailsformbutton" />

    </div>

</form>

 

Thank you

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points