close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 Jason Byrnes | 721 views | 1 replies |

John_GR

Change alerts for required fields

Hello, I need to change the alert messages at the spry fields into the Greek language. Like " please enter a valid phone number"... But although I change them in dreamweaver php pages manually, when the files are on air they display the messages in english. Are these alert messages stored in a separate file? And to which one?

Thank you.

Sign in to reply to this post

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:

php:
<p>
              <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>
                        <?php
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.
                        </span>
                          <?php //WAFV_Conditional confirm.php confirm(16:)
    
}
  }
}
?>
          </p>






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




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.

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