Page 3 of 3

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 08:36
by silbro
Maybe I should play around with the script a bit more then ;) multiple receipients and sending it to a friend was logical for me too just didnt get the hang of making a box where the user can choose to which email adress he wants to send it to :) But I'll go try it again, thx!

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 09:31
by silbro
I don't understand how to make a dropdown menu where I can choose to send the email to :( I made a dropdownmenu with emails and saved them in emails but i cant leave the to email blank, even deleting in the config file doesnt help. I also can't put something like that in there {dropdownvalue} How do I solve this problem? :(

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 09:41
by Oliver Georgi
You cannot use dropdown menus to choose email from because system will always need to check validity of email address! Only field type email can be used!

It's better to use a small frontend_init script to proof customers input and fill in the correct recipient based on processed result.

Oliver

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 09:46
by silbro
Ok, so the user can type in where he wants to send it to but is not able to choose from a dropdown menu if I understand you correctly because the form is being checked for a valid email adress.

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 09:58
by Oliver Georgi
That's right. But as I have written - using a frontend_init script it is possible.

But you can use a custom template - then you can also use such dropdown menu. But I cannot recommend this because all spam harvesters will have fun catching the email addresses.

Oliver

Re: CP form: dynamic subject possible?

Posted: Tue 22. Jan 2008, 20:46
by Jensensen
Hello Oliver, hi folks,

[x]

case 'A': --> selectable recipients
[x]

case 'B': --> different salutation depending on s-e-x of sender

[x]
Mrs. ---> 'Sehr geehrte Frau {name}' or
Mr. ---> 'Sehr geehrter Herr {name}'...
[x]