View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Agreeing to terms and conditions check box

Thread began 12/10/2009 4:03 pm by jo4koalas392067 | Last modified 12/14/2009 3:24 pm by jo4koalas392067 | 1903 views | 15 replies

Jason ByrnesWebAssist

you still have some bad code in the onsubmit event.


change:

html:
onsubmit="This behavior cannot be applied without a regular expression specified.;returndocument.MM_returnValue;return document.MM_returnValue;WAValidateAN(document.getElementById('WAATKRegistrationForm').UserName,document.getElementById('WAATKRegistrationForm').UserName.value,'User Name: Cannot be Blank. Alphanumeric only - no spaces.',true,true,true,false,'',document.getElementById('WAATKRegistrationForm').UserName,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').UserPassword,document.getElementById('WAATKRegistrationForm').UserPassword.value,'Password: Cannot be Blank. Alphanumeric only - no spaces. ',true,true,true,false,'',document.getElementById('WAATKRegistrationForm').UserPassword,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').FirstName,document.getElementById('WAATKRegistrationForm').FirstName.value,'First Name: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').FirstName,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').LastName,document.getElementById('WAATKRegistrationForm').LastName.value,'Last Name: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').LastName,0,true);WAValidateEM(document.getElementById('WAATKRegistrationForm').UserEmail,document.getElementById('WAATKRegistrationForm').UserEmail.value,'Email: Cannot be Blank. Invalid email address',document.getElementById('WAATKRegistrationForm').UserEmail,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').phone,document.getElementById('WAATKRegistrationForm').phone.value,'Phone: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').phone,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingAddress1,document.getElementById('WAATKRegistrationForm').BillingAddress1.value,'Address: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingAddress1,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingCity,document.getElementById('WAATKRegistrationForm').BillingCity.value,'City: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingCity,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingState,document.getElementById('WAATKRegistrationForm').BillingState.value,'State: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingState,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingZip,document.getElementById('WAATKRegistrationForm').BillingZip.value,'Post Code: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingZip,0,true);WAValidateRQ(document.WAATKRegistrationForm.terms,'Terms: Please tick in order to complete your subscription.',document.WAATKRegistrationForm.terms,0,true,'checkbox');WAAlertErrors('The following errors were found:','Please correct invalid entries in order to continue with your subscription.',true,document.getElementById('false'),false);return document.MM_returnValue"




to:

html:
onsubmit="WAValidateAN(document.getElementById('WAATKRegistrationForm').UserName,document.getElementById('WAATKRegistrationForm').UserName.value,'User Name: Cannot be Blank. Alphanumeric only - no spaces.',true,true,true,false,'',document.getElementById('WAATKRegistrationForm').UserName,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').UserPassword,document.getElementById('WAATKRegistrationForm').UserPassword.value,'Password: Cannot be Blank. Alphanumeric only - no spaces. ',true,true,true,false,'',document.getElementById('WAATKRegistrationForm').UserPassword,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').FirstName,document.getElementById('WAATKRegistrationForm').FirstName.value,'First Name: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').FirstName,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').LastName,document.getElementById('WAATKRegistrationForm').LastName.value,'Last Name: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').LastName,0,true);WAValidateEM(document.getElementById('WAATKRegistrationForm').UserEmail,document.getElementById('WAATKRegistrationForm').UserEmail.value,'Email: Cannot be Blank. Invalid email address',document.getElementById('WAATKRegistrationForm').UserEmail,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').phone,document.getElementById('WAATKRegistrationForm').phone.value,'Phone: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').phone,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingAddress1,document.getElementById('WAATKRegistrationForm').BillingAddress1.value,'Address: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingAddress1,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingCity,document.getElementById('WAATKRegistrationForm').BillingCity.value,'City: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingCity,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingState,document.getElementById('WAATKRegistrationForm').BillingState.value,'State: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingState,0,true);WAValidateAN(document.getElementById('WAATKRegistrationForm').BillingZip,document.getElementById('WAATKRegistrationForm').BillingZip.value,'Post Code: Cannot be Blank.',true,true,true,true,'',document.getElementById('WAATKRegistrationForm').BillingZip,0,true);WAValidateRQ(document.WAATKRegistrationForm.terms,'Terms: Please tick in order to complete your subscription.',document.WAATKRegistrationForm.terms,0,true,'checkbox');WAAlertErrors('The following errors were found:','Please correct invalid entries in order to continue with your subscription.',true,document.getElementById('false'),false);return document.MM_returnValue"

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...