close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I have followed the steps to apply a Captcha element to my form as shown in the article that shows how to validate a Captch element.

Thread began 10/08/2013 3:41 pm by markhaynes75235 | Last modified 10/09/2013 1:05 pm by markhaynes75235 | 2095 views | 4 replies |

markhaynes75235

I have followed the steps to apply a Captcha element to my form as shown in the article that shows how to validate a Captch element.

The server validation works because the data will not insert when the Captcha is not correctly matching the code, but the text I placed in the Validation Show If server behavior is not appearing on the page. I've moved the </label> tag that has a spry behavior so that the code is not inside that tagset. Can you help me sort this out?

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

I would need to see the code. Please send a copy of the page.

Sign in to reply to this post

markhaynes75235

Originally Said By: Jason Byrnes
  I would need to see the code. Please send a copy of the page.  


I've placed the code for the page in the Private Message area. Below is the relevant code from the form:

<li class="formItem">
<div class="formGroup">
<label class="groupHeader" for="Registration_Authorization_field">Authorization</label>
<div class="lineGroup">
<div class="fullColumnGroup">
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Registration_Authorization_field_Spry">
<label class="checklabel" for="Registration_Authorization_field" onblur="hideServerError('Registration_Authorization_field_ServerError');"><img id="capt1" src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=1&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=1B2C5D&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=1B2C5D" alt="security code" width="200" height="50" /><img src="webassist/captcha/images/refresh.png" height="18" onclick="document.getElementById('capt1').src+='&ref=1'" /><br />
<span class="requiredIndicator">&nbsp;*</span><input id="Security_Code_1" name="Security_Code_1" type="text" value="" /> </label>
<?php
if (ValidatedField('advocacysignup','advocacysignup')) {
if ((strpos((",".ValidatedField("advocacysignup","advocacysignup").","), "," . "4" . ",") !== false || "4" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Security_Code_1">Please enter the security code </span>
<?php //WAFV_Conditional newslettersignup.php advocacysignup(4:)
}
}
}?>
<br />
<span class="SecurityRequiredMsg">Enter the security code shown above</span> </span></div>
</div>
</div>
</div>
<div class="fullColumnGroup">
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Registration_Authorization_field_Spry">
<label class="checklabel" for="Registration_Authorization_field" onblur="hideServerError('Registration_Authorization_field_ServerError');">
<span class="requiredIndicator">&nbsp;*</span><input type="checkbox" name="Registration_Authorization_field" id="Registration_Authorization_field" value="1" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("advocacysignup","Registration_Authorization_field"):""),""))) {echo "unchecked=\"unchecked\"";} ?> tabindex="4" />
</label>
<span class="checkboxRequiredMsg">Please agree to our terms</span> </span> <input name="Content" type="hidden" id="Content" value="please include me in your email newsletter list" /><input name="pgSrc" type="hidden" id="pgSrc" value="6" /><input id="regDate" name="regDate" type="hidden" value="<?php echo(date("Y-m-d H:i:s")); ?>" /></div>
</div>
</div>
</div>
</div>
</div>
</li>

Sign in to reply to this post

Jason ByrnesWebAssist

You have 2 server validation server behaviors on the page.

you should only have 1.

you will need to remove the show if for the captcha, and remove the second validation show if behavior from the server behavior panel. The edit the first one to add the captcha validation and re create the validation show if behavior.

Sign in to reply to this post

markhaynes75235

Thanks Jason! As always you were right. I had forgotten that all WA Server Validations are found in the same Server Validation Server Behavior. I've tested the updated live page and am awaiting the email confirmation. I'll start a new thread if I broke something there.

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