<![CDATA[ eForm email from javascript - My Forums]]> https://forums.modx.com/thread/?thread=89179 <![CDATA[Re: eForm email from javascript]]> https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490815 onyx_nz Feb 21, 2014, 11:49 AM https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490815 <![CDATA[Re: eForm email from javascript]]> https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490797 Quote from: onyx_nz at Feb 20, 2014, 03:26 AM
How should I format a PHP script response that will change the &To field? I don't want a list of email addresses in the '[!eForm? &to ' field to choose from with mailselector, I want to write the &to address on the fly.

I don't think this is supported in ther current version of eForm snippet.]]>
danilocuculic Feb 21, 2014, 08:09 AM https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490797
<![CDATA[Re: eForm email from javascript]]> https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490669
What I am now having difficulty with is getting the email address that is newly built back into the eForm &To field - it has ignored everything so far.

How should I format a PHP script response that will change the &To field? I don't want a list of email addresses in the '[!eForm? &to ' field to choose from with mailselector, I want to write the &to address on the fly.]]>
onyx_nz Feb 19, 2014, 09:26 PM https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490669
<![CDATA[Re: eForm email from javascript]]> https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490379 Quote from: onyx_nz at Feb 18, 2014, 09:50 AM
Is it possible? If so, does anybody have any pointers? Can I dynamically fill a hidden input field or something?

Don't do it client-side because you're exposing email addresses to spammers, take a look at the &mailselector parameter:
http://www.partout.info/assets/snippets/eform/docs/eform.htm#params]]>
danilocuculic Feb 18, 2014, 04:38 AM https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490379
<![CDATA[eForm email from javascript]]> https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490374
Is it possible? If so, does anybody have any pointers? Can I dynamically fill a hidden input field or something?
]]>
onyx_nz Feb 18, 2014, 03:50 AM https://forums.modx.com/thread/89179/eform-email-from-javascript#dis-post-490374