Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listsend email to different recipients based on user inputsend email to different recipients based on user input
Previous
 
Next
New Post
4/16/2012 3:22 PM
 

Hi,

I've got a form running  using Form and List 5.1.3 on DNN 06.01.04.  Everything works nicely and the module is really great! Functionality, interface, and documentation - very impressed. 

What I'd like to do is this: I'd like for the form to send to different recipients based on user input.  So if they select city A, then email goes to recipient A, if they select city B then email goes to recipient B.

What I've tried so far:

1. Put the following into the recipients field:   [city]@mydomain.com  but the form validation doesn't allow it.

2. Use Calculated Column and then generate an email based on the City field for a hidden field, using something like this:
[City] + '@mydomain.com'.  This doesn't appear to generate any text when I temporarily make the column visible in the form and the form validation doesn't allow this output to be used for the recipient field in the email configuration.

3. I've also tried putting tokens into the subject line, like this:  [City] Form submission subject text.  But the token doesn't come through.  The idea with this approach is doing some sorting at the email server level but I would prefer not to do that.

 Any help would be much appreciated!

Thanks,

Richard

 

 
New Post
4/18/2012 10:04 AM
 

Use the datatype email and  add the following to input settings/ list of values:

city1|email@city1.com; city2|email@city2.com;city3|email@city3.com;

This provides a combo bog (or radio button list) which ;lists up city 1 to city3, and works well for all email fields within notification.

Please add the subject request to the issue tracker (http://dnnfnl.codeplex.com/workitem/list/basic)

 
New Post
4/19/2012 1:43 PM
 

Hi Stefan,

Thanks for this answer! That works nicely.

Now the client has presented a second challenge - vary the email recipient based on 2 variables, not just 1. I tried previously to generate an email address by concatenating field ouputs but the module wouldn't let me because the emails were considered invalid.  How can I generate an email address based on 2 user inputs and then stuff that into the recipient email slot?

Stefan - you also asked - 'Please add the subject request to the issue tracker (http://dnnfnl.codeplex.com/workitem/list/basic)' - Not sure what or why you are asking this?

Something that I realised that might help others: I setup my forms as indicated in the (excellent) instructions.  I have a page with the list which is hidden and then I have a page with the form which is publicly viewable (referencing the original module). I would make changes on the list page and they would appear on the form page.  So far so good. Then, I was changing the email settings on the list page and couldn't understand why it wasn't changing on the form page. I realised that I have to change the email settings on the form page.  This is counter-intuitive since I can configure everything else on the form page.

Thanks again Stefan!

 Further help would be appreciated!

 Richard

 
New Post
4/20/2012 12:32 PM
 
Richard Munter wrote:

Stefan - you also asked - 'Please add the subject request to the issue tracker (http://dnnfnl.codeplex.com/workitem/list/basic)' - Not sure what or why you are asking this? 

You asked for the new feature "tokens in subject". I only monitor work items at codeplex, all other requests, for example here in forum, will be lost.. This is not manageable. 

I even don't enter new requests from the forum as  work items. It is no my request, it is yours.   

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listsend email to different recipients based on user inputsend email to different recipients based on user input


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out