Forums

Required Email Address(es) field.

rrhode 30 Apr, 2008
I was talking to Max in email. He said to post here so I am posting here.

To be clear, there are multiple forms on this site, so hacking the component to ignore the primary Email Address(es) field on the General tab is probably not a good idea.

Our 'Tell A Friend' form looks like this:

Subject:
Friends name:
Friends e-mail:
Your name:
Your e-mail:
Short message:

When I turned off the Email the results in the General tab and didn't enter an email address I never got an email to the Friends e-mail field. It won't let me set Email the results to Yes and not enter an email in the Email Address(es) field on the General tab.

I am not sure if maybe I just didn't do it right or what but what I was trying to do is have it so it only sends to the Friends e-mail field which I added into the Special Fields tab.

Another thing I am thinking about that I can't figure out how to do is the possibility of sending it to both emails. For example the form would have a check box that says 'Send a copy of this to myself'. Is there a way to do that? Or would I have to code some php and use Joomla functions?

Thanks,

Ryan
Max_admin 01 May, 2008
Hi Ryan,

you didn't ping me with an email when you posted here though!!๐Ÿ™‚

So, lets fix the first problem first, can you go the admin.chronocontact.html.php file and find the javascript line which checks for email address and hack it so it doesn't do this check ? let me know how this goes!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rrhode 11 May, 2008
When in Joomla 1.5 and sef mode enabled I also had to hack the actionurl in the frontend files chronocontact.html.php to add the Joomla root or it gave an error: No input file specified.
$actionurl = JURI::root().'index.php?option=com_chronocontact&task=send&chronoformname='.$rows[0]->name;


So that form seems to work good enough for now at least๐Ÿ™‚

Not too worried about the send to another email thing then.

Thanks.
This topic is locked and no more replies can be posted.