forms - &validate=`workemail:blank` is not behaving properly -


i've tried using example stop page getting spam on it, when test out , put text in field, submit button still sending form out. use formit websites.

the idea create hidden field if spambot enters info hidden field, no email sent out.

example in question

https://docs.modx.com/extras/revo/formit/formit.tutorials-and-examples/formit.using-a-blank-nospam-field

snippets of code

<input type="hidden" name="workemail" value="" /> [[!formit? &validate=`workemail:blank`]] 

i'm using exact code there, , code below field - i've made sure field within tags.

<input type="hidden" name="workemail" value="[[!+fi.workemail]]" /> 

my formit code looks like

[[!formit?         &hooks=`spam,formitsaveform,email,redirect`         &redirectto=`122`         &formname=`contact form`         &formfields=`fname,title,company,email,options,subject,message`         &emailtpl=`fi-contact_email`         &emailsubject=`[[*contact_email_subject]]`         &emailto=`[[*contact_email_to_address]],candelari@hgp.com`         &emailfrom=`[[*contact_email_from_address]]`         &emailfromname=`[[*contact_email_from_name]]`         &emailreplyto=`[[+email]]`         &submitvar=`contactform`         &validate=`workemail:blank,         fname:required,         email:email:required,         message:striptags,         username:blank`       ]] 

any appreciated, thank you


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -