Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Dropdown = Email Recipient


Go to End


4 Posts   1455 Views

Avatar
Stijn

Community Member, 46 Posts

1 June 2010 at 7:25am

I've made a form and when a user click a specific item in that list, the form should mail to that item.

How can I manage that?

Example:

The dropdown:
Januari
Februari
March

When you select March, the form should mail to info@march.com

Avatar
Willr

Forum Moderator, 5523 Posts

1 June 2010 at 4:55pm

Is this using UserDefinedForms? If so then this is impossible. The only way you could do it is to store the emails in the dropdown. For example you would need your dropdown to have

info@march.com
info@feb.com
..

Then you can set the To field to be the value of that dropdown.

Avatar
Stijn

Community Member, 46 Posts

1 June 2010 at 5:50pm

Yes, I've seen this future in the UserForms, but I think its rather strange to put your emails in a dropown... The user doesn't need to know which email he need to choose. He wan't only the names ...

Avatar
Willr

Forum Moderator, 5523 Posts

1 June 2010 at 7:30pm

Yep totally not the ideal solution but thats the best currently with the module.