Template Tags
Last updated
Was this helpful?
Last updated
Was this helpful?
You can use the following template tag to manually create a Snaptcha field (not required for supported add-ons):
Creates a Snaptcha field with the security level in the extension settings
Creates a Snaptcha field with the security level specified (1=low, 2=medium, 3=high)
If you have a situation where you are using the Snaptcha field multiple times in the same template then you should give each tag a unique identifier.
The field tag also accepts any extra parameters and assigns them as html attributes. For example:
Will result in the following output. Note that a boolean value of true ("1", "yes" or "true") will result in just the attribute added to the tag. A boolean value of false ("0", "no" or "false") will not add the attribute to the input tag.
If your forms use AJAX to submit data then you must ensure that the Snaptcha field and its corresponding value is submitted as well.