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

A value is required

Thread began 6/18/2009 5:02 pm by roby258376 | Last modified 6/19/2009 3:33 pm by Ray Borduin | 5742 views | 9 replies |

roby258376

A value is required

I am using the Contact Forum solution pack for the first time. Uploading the files as is, without changing them at all, the validations won't work as intended.

All fields default to "A value is required" instead of putting in the customized text, ie Please provide your email addess so we can get back in touch with you.

any help is appreciate.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a url where we can view the problem?

Sign in to reply to this post

roby258376

contact_styled.php

thanks

Sign in to reply to this post

Ray BorduinWebAssist

It appears the spry validation messages were reset. You can easily update them to whatever you want in the code. Just find the value on the page and update it. If you have CS3 or CS4 you can use the property inspector to manipulate the spry validations entirely.

Sign in to reply to this post

roby258376

Hi Ray, This is the code from the page.... the validation messages are there, they just aren't being shown on the page.

<form action="" method="post" name="emailContact" id="emailContact" onsubmit="">
<div style="width:100%">
<label for="Contact_Name" >Your name:</label>
<br />
<span id="sprytextfield1">
<input name="Contact_Name" type="text" class="inputValue" id="Contact_Name" onblur="if (document.getElementById('nameServerError')) document.getElementById('nameServerError').style.display='none'" value="<?php echo(ValidatedField("contact","Contact_Name")) ?>" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<input name="addblock" type="text" id="addblock" style="display:none" value="" />
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span id="nameServerError" class="textfieldServerError">Please provide your name.</span>
<?php //WAFV_Conditional contact.php contact(1:)
}
}
}?>
<br />
<label for="Email_address" >E-mail address:</label>
<br />
<span id="sprytextfield2">
<input name="Email_address" type="text" class="inputValue" id="Email_address" onblur="if (document.getElementById('emailServerError')) document.getElementById('emailServerError').style.display='none'" value="<?php echo(ValidatedField("contact","Email_address")) ?>" />
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
<input name="seconddblock" id="seconddblock" type="text" style="display:none" value="" />
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span id="emailServerError" class="textfieldServerError">Please provide your email addess so we can get back in touch with you.</span>
<?php //WAFV_Conditional contact.php contact(2:)
}
}
}?>
<br />
<label for="Comments" >Comments:</label>
<br />
<span id="sprytextarea1">
<textarea name="Comments" class="inputText" id="Comments" onblur="if (document.getElementById('commentsServerError')) document.getElementById('commentsServerError').style.display='none'" ><?php echo(ValidatedField("contact","Comments")) ?></textarea>
<span class="textareaRequiredMsg">A value is required.</span></span>
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
<span id="commentsServerError" class="textfieldServerError">Please let us know how we can assist you.<br />
</span>
<?php //WAFV_Conditional contact.php contact(3:)
}
}
}?>
<label for="Security_code" ><br />
Security code:</label>
<br />
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=<?php echo $WAGLOBAL_Captcha_Noise; ?>&bgcolor=<?php echo $WAGLOBAL_Captcha_BG; ?>&textcolor=<?php echo $WAGLOBAL_Captcha_Text; ?>&transparent=<?php echo $WAGLOBAL_Captcha_BG_transparent; ?>&characters=<?php echo $WAGLOBAL_Captcha_Characters; ?>&width=<?php echo $WAGLOBAL_Captcha_Width; ?>&height=<?php echo $WAGLOBAL_Captcha_Height; ?>&font=<?php echo $WAGLOBAL_Captcha_Font; ?>" alt="security code" /><br />
<span id="sprytextfield3">
<input name="Security_code" type="text" class="inputValue" id="Security_code" onblur="if (document.getElementById('captchaServerError')) document.getElementById('captchaServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></span>
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "4" . ",") !== false || "4" == "")) {
if (!(false)) {
?>
<span id="captchaServerError" class="textfieldServerError">Your security code entry did not match the image.</span>
<?php //WAFV_Conditional contact.php contact(4:)
}
}
}?>
<br />
<label for="Security_code" >
<?php require_once("WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>
</label>
<br />
<span id="sprytextfield4">
<input name="Security_question" type="text" class="inputValue" id="Security_question" onblur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
?>
<span id="securityServerError" class="textfieldServerError">Your answer was not correct.</span>
<?php //WAFV_Conditional contact.php contact(4:)
}
}
}?>
<br />
<input type="submit" value="Submit" class="inputButton"/>
</div>
</form>
Sign in to reply to this post

Ray BorduinWebAssist

Those are the server validation messages. The spry messages appear:

<span class="textfieldRequiredMsg">A value is required.</span>

if you submit the page it will show the server messages.

Sign in to reply to this post

roby258376

thanks Ray,

I'll change them. Any reason why this solution ships with the incorrect code?

Sign in to reply to this post

Ray BorduinWebAssist

It may be an oversight. We switched from using Validation Toolkit to Spry validation in a recent release. It appears the error messages must not have been updated properly. I will report it as a bug.

Sign in to reply to this post

roby258376

Another potential bug is that I am using the Contact Form Solution, out of the box, and yet, in the server behaviors, the WA Server Validations and all of the Validation Show If (contact.php) are not editable. Trying to modify them in anyway brings up the error "Please select a form page with WA Server Validation applied".

I have the latest version of WA Validation Toolkt btw.

At this point, I can't edit the thing without handcoding everything, and even at that, it's really easy to break it. Not a good value for the money at this point, imo

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to edit them. If you change the page name you may need to specify it again, but it should all work for editing. If you continue to have problems please post a support incident this will allow someone to look into it further with you directly to find the cause and solution.

Sign in to reply to this post
loading

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