Hi EE community,
I was recently playing with the build in form tags and email module and I had some questions. The main interest in using the build in EE forms which I think should receive more love in my case is to be able to manipulate it with conditionals and different behaviors.
I’m not sure if this possible but can you use conditionals with the forms tags?
An example: I only want to display the captcha in forms for visitors coming from India (they fill spam messages) but not for other countries. I guess maybe combining this with country IP module this could be possible?
Still about forms, when a users submits the forms it defaults to the user English messages unless the user is logged into EE (then messages are for this locale).
But how does this work with multi language sites for visitors not logged in? Is there a way to pass the language variable or tag in the form so it uses the locale for a specific language?
Example, assuming you have a French form and German form and English (all separated pages). You probably don’t want to show the error messages when something is missing in the form or captcha in English to your French and German users. This is bad usability. So in those pages the form should contain a locale TAG that tells EE to use those messages instead that correspond to the language. So you could use locale=FR in the French page or locale=DE in the German form page. I didn’t see anywhere mentioned this in the documentation. Is this possible? To instruct EE which locale messages to use for that page?
I also noticed a bug. The cache does not really work well with the captcha (using the latest EE 3 release). The documentation says the cache is clever enough to know when to clear itself automatically like with specific tags. This does not seem to be the case in my experience. If you log in as user, the captcha is gone (I don’t require it for authenticated users) but once you log out, it does not show the change for that user. The page is cached and if the user tries to submit the form it will default to an error (the captcha image is invisible or blank). You need to clear the cache.
And the opposite is true. If the person visits the form first. Again you need to clear the cache. At least the build in cache is not working correctly with the captcha image it seems.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.