Forum for discussing general topics related to Couch.
13 posts Page 2 of 2
The type 'recaptcha' input raises errors like all other Couch inputs (the 'require' parameter is not really needed as Google will always validate the captcha at each submission).

As mentioned in the docs on form, your form then should display the errors either in bulk - e.g.
Code: Select all
<cms:if k_error >
    <font color='red'><cms:each k_error ><cms:show item /><br /></cms:each></font>
</cms:if>

Or with individual field - e.g. assuming the name of the captcha field is 'recaptcha_test', you should test for a variable named 'k_error_recaptcha_test' as follows
Code: Select all
<cms:input name='recaptcha_test' type='recaptcha'/><br>

<cms:if k_error_recaptcha_test>
    <font color='red'><cms:show k_error_recaptcha_test /></font><br>
</cms:if>

@oldcelt, are you using any of those two in your form?
I wasn't but I'll give it a go!

CouchCMS is brilliant but needs a lot of study to get the finer points embedded in the old brain :)

I'm sure I'll get there in the end - thanks again for the instant help.
KK wrote: <cms:if k_error_recaptcha_test>
<font color='red'><cms:show k_error_recaptcha_test /></font><br>
</cms:if>[/code]
@oldcelt, are you using any of those two in your form?

Each individual field on the form did have the above but the recaptcha_test didn't. That sorted it - thank you!
13 posts Page 2 of 2

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 2 guests

cron