close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Change alerts for required fields

Thread began 2/02/2010 9:38 am by John_GR | Last modified 2/02/2010 2:19 pm by John_GR | 662 views | 1 replies

Jason ByrnesWebAssist

there are three types of validation applied to the checkout page:
Spry validation
Validation Toolkit Client Side validation
Validation Toolkit Server Side validation

each validation type has it's own validation message.

lets take the address form elemetn as an example:

              <label for="street1" >Address:</label>
            <span id="sprytextfield10">
                      <input name="street1" type="text" id="street1" onblur="if (document.getElementById('street1ServerValidation')) document.getElementById('street1ServerValidation').style.display='none';" value="<?php echo((isset($_GET['valid']))?(ValidatedField("confirm","street1")):$row_WAATKusers['UserAddress']); ?>" />
                      <span class="textfieldRequiredMsg">Please enter the billing address for your card.</span></span>
if (ValidatedField("confirm","confirm"))  {
  if ((
strpos((",".ValidatedField("confirm","confirm").","), "," "16" ",") !== false || "16" == ""))  {
    if (!(
false))  {
                      <span class="textfieldServerError" id="street1ServerValidation">
                          Please enter the billing address for your card.
                          <?php //WAFV_Conditional confirm.php confirm(16:)

the spry message is in the textfieldRequiredMsg span tag:

<span class="textfieldRequiredMsg">Please enter the billing address for your card.</span>

The server validation error message is in the textfieldServerError span tag:

<span class="textfieldServerError" id="street1ServerValidation">
Please enter the billing address for your card.

the address field does not include client side validation, but the cc_number element does, it is added to the onblur event:

onblur="if (document.getElementById('cc_numberServerValidation')) document.getElementById('cc_numberServerValidation').style.display='none';WAValidateCC(document.forms[0].S_ProductName,document.forms[0].S_ProductName.value,'- Invalid credit card number','xxxxxxxxxxxxxxxx','4:51:52:53:54:55:34:37:6011:30:36:38:49:50:56:57:58:6:6334:6767:',document.forms[0].S_ProductName,0,true)"

the error message is included in the script:
,'- Invalid credit card number'

you need to make sure you change the error message for all of the validation types.

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





Ease of use


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