close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Trying to change spry validation message but will not change

Thread began 4/03/2013 11:50 am by mnoles04344676 | Last modified 4/03/2013 3:00 pm by Jason Byrnes | 713 views | 7 replies |

mnoles04344676

Trying to change spry validation message but will not change

I am trying to change the default messages "please enter a value" to "please enter your password". It changes in Dreamweaver CS6, but does not change on live site.

Sign in to reply to this post

Jason ByrnesWebAssist

make sure you are not editing the server validation message and you are editing the spry validation message.

if you send a copy of your page I can show what to edit for spry validation.

Sign in to reply to this post

mnoles04344676

Copy of logIn Page

Here's a copy of my logIn Page

Sign in to reply to this post

Jason ByrnesWebAssist

this code:

php:
<?php

if (ValidatedField('logIn','logIn'))  {
  if ((
strpos((",".ValidatedField("logIn","logIn").","), "," "1" ",") !== false || "1" == ""))  {
    if (!(
false))  {
?>
                <span class="serverInvalidState" id="Log_In_group_Username_ServerError">Please enter your Password.</span>
                <?php //WAFV_Conditional logIn.php logIn(1:)
    
}
  }
}
?>




and this code:

php:
<?php

if (ValidatedField('logIn','logIn'))  {
  if ((
strpos((",".ValidatedField("logIn","logIn").","), "," "2" ",") !== false || "2" == "") || (strpos((",".ValidatedField("logIn","logIn").","), "," "3" ",") !== false || "3" == ""))  {
    if (!(
false))  {
?>
                <span class="serverInvalidState" id="Log_In_group_Password_ServerError">Please enter a value.</span>
                <?php //WAFV_Conditional logIn.php logIn(2,3:)
    
}
  }
}
?>



are the server validation error messages.

the code for the spry validation messages is:

<span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span><span class="textfieldRequiredMsg">Please enter a value.</span>



and

<span class="passwordMinCharsMsg">Minimum number of characters not met.</span><span class="passwordRequiredMsg">Please enter a value.</span>
Sign in to reply to this post

mnoles04344676

I don't understand.

That code that you sent me is the same that I have.

Sign in to reply to this post

Jason ByrnesWebAssist

Im point out to you which blocks of code to edit for the spry messages and the server validation messages.


if you edit the server validation message, it will have no effect on the spry message.

you need to make sure you are editing the spry message.

Sign in to reply to this post

mnoles04344676

It's working now.

Before you could change it where I was, Not where you currently have too. But it's working. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the code you where changing is the Server side validation error.

it is the error message that will display if server side validation fails.

for spry validation failure, you have to edit the other code.
.

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