close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation - how to allow Return/Enter in a Text Box

Thread began 4/26/2010 11:58 am by karen.marley367377 | Last modified 4/26/2010 7:38 pm by Jimmy Wu | 873 views | 1 replies |

karen.marley367377

Validation - how to allow Return/Enter in a Text Box

Hi, I have a number of html forms for which I am using validation toolkit. when a return / new line is entered into a text box, an error message appears. Is there a way of allowing Enter/Return in the validation? One of the text fields is called Address, and below is the code from the page:

<form action="formmail.php" method="post" name="MortgageForm" id="MortgageForm" onsubmit="WAValidateAN(document.MortgageForm.First_Name,document.MortgageForm.First_Name.value,'First Name : Required / Invalid character in entry',true,true,false,true,'- , ',document.MortgageForm.First_Name,0,true);WAValidateAN(document.MortgageForm.Last_Name,document.MortgageForm.Last_Name.value,'Last Name : Required / Invalid character in entry',true,true,false,true,'- , ',document.MortgageForm.Last_Name,0,true);WAValidateZC(document.MortgageForm.Post_Code,'Post Code : Invalid Post Code / Required',true,true,true,true,'',document.MortgageForm.Post_Code,0,true);WAValidateAN(document.MortgageForm.Daytime_Number,document.MortgageForm.Daytime_Number.value,'Daytime Telephone Number : Required / Numbers only.',false,false,true,true,'- , ',document.MortgageForm.Daytime_Number,0,true);WAValidateEM(document.MortgageForm.email,document.MortgageForm.email.value,'Email Address - Invalid email address / Required.',document.MortgageForm.email,0,true);WAValidateAN(document.MortgageForm.Address,document.MortgageForm.Address.value,'Address : Required / Invalid Characters.',true,true,true,true,'- , . , , , \' , \' &, ',document.MortgageForm.Address,0,true);WAValidateRT(document.MortgageForm.Address,document.MortgageForm.Address.value,'Address - Invalid content in entry','http://|, |',document.MortgageForm.Address,0,true);WAValidateAN(document.MortgageForm.Purchased_Address,document.MortgageForm.Purchased_Address.value,'Purchase Address : Required / Invalid Characters.',true,true,true,true,'- , . , , , \' , \'',document.MortgageForm.Purchased_Address,0,false);WAValidateRT(document.MortgageForm.Purchased_Address,document.MortgageForm.Purchased_Address.value,'Purchase Address - Invalid content in entry','http://|, |',document.MortgageForm.Purchased_Address,0,false);WAValidateEL(document.MortgageForm.spam,document.MortgageForm.spam.value,'- Invalid number of characters in entry',1,1,'',document.MortgageForm.spam,0,false);WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false);WAValidateEL(document.MortgageForm.spam,document.MortgageForm.spam.value,'spam',1,1,'',document.MortgageForm.spam,0,false);return document.MM_returnValue" >

Sign in to reply to this post

Jimmy Wu

What version of Validation toolkit are you using? I applied a Restrict Content validation to a text area and was able to submit with a return in the input.

Sign in to reply to this post

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...