Hello,
I use the chronoform plugin to include the form inside content. Some of my input selection boxes contain email addresses. Unfortunately for email addresses, these get replaced with javascript (another joomla plugin). Even with mambots turned off, there is an issue. I can work around this by using PHP onsubmit before send email.
I'm no good at php, but I had started to look at str replace. God knows what is next.
Would be great to have values like email1, email2, email3 inside the form. And have these translated to their email addresses.
Could someone please point me in the right direction .. :wink:
I use the chronoform plugin to include the form inside content. Some of my input selection boxes contain email addresses. Unfortunately for email addresses, these get replaced with javascript (another joomla plugin). Even with mambots turned off, there is an issue. I can work around this by using PHP onsubmit before send email.
I'm no good at php, but I had started to look at str replace. God knows what is next.
Would be great to have values like email1, email2, email3 inside the form. And have these translated to their email addresses.
Could someone please point me in the right direction .. :wink:
Hi Azzied,
The better solution is not to have email addresses in your form html - they'll get scraped and spammed for sure. Use a 'code' em1, em2, . . . in your form values and put a little lookup table in the Onsubmit code to replace the codes with emails in the backend. There are a couple of examples here in the forums of forms that do that.
You can also get the 'weird code' problem with user data if you have email cloaking on. I think you can fix this by changing the order that the PlugIns run in. I forget which order you need so open the Joomla PlugIn manager look for email cloaking and ChronoForms and switch over the order they run in (use the Order column).
Bob
The better solution is not to have email addresses in your form html - they'll get scraped and spammed for sure. Use a 'code' em1, em2, . . . in your form values and put a little lookup table in the Onsubmit code to replace the codes with emails in the backend. There are a couple of examples here in the forums of forms that do that.
You can also get the 'weird code' problem with user data if you have email cloaking on. I think you can fix this by changing the order that the PlugIns run in. I forget which order you need so open the Joomla PlugIn manager look for email cloaking and ChronoForms and switch over the order they run in (use the Order column).
Bob
This topic is locked and no more replies can be posted.