Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Blank field in CFML form

New Here ,
Dec 23, 2008 Dec 23, 2008
Can someone help me - I am not a CFML programmer but need to adjust a form made by someone else to include a hidden formfield that needs to stay blank in order for the form to validate. Our forms our constantly being hit by spammers and we do not want a captcha due to accessibility.
464
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 23, 2008 Dec 23, 2008
on your results page,
<cfif len(form.Hidden_field_that_must_be_blank) is 0>
good
<cfelse>
bad
</cfif>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 23, 2008 Dec 23, 2008
Thank you for your reply - I pasted the code below - Can you tell me where to put the code you suggested?



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 23, 2008 Dec 23, 2008
LATEST
No where here. Dan posted the forms action code, the only part that is
actually ColdFusion CFML.

On your form page you just need to put an HTML hidden form control
anywhere between the opening <form...> and closing </form> tags.

Dan's code would go somewhere, probably near the top, of the
submit_confirm.cfml template to prevent the processing of the form data
if the hidden control is not empty.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources