Form and List: need an if statement to chose an email
Last Post 11/09/2015 9:52 AM by Syed rafiuddin. 4 Replies.
Author Messages
Olivia Terrell
Nuke Newbie
Nuke Newbie
Posts:2


--
08/23/2011 1:44 PM  
I am writing a help form for work using DNN Form and List and need to be able to submit the form to both the person requesting help--and to a team member.

The team member emailed is based off of the choices that the user selects (i.e. if they chose "medical" from our dropdown list, I need the form to be emailed to Will).

I know how to do it in php--but I do not know how to incorporate a logical "if" statement in the Form and List to test a collumn field value in DNN.

It is driving me crazy...
Joseph Craig
DNN MVP
Posts:11667


--
08/24/2011 7:06 AM  
I have a form with a column called Inquiry Type. It is configured as a dropdown list of type email. The "List Value" is something like this:

General Inquiry|info@mydomain.org; Privacy and Security Concerns|concerns@mydomain.org.org;Information Inquiry|info@mydomain.org

Then, under Email Settings set the To address to [Type of Inquiry].

In other words, the To email address is set to the value of the Type of Inquiry item.

Joe Craig, Patapsco Research Group
Complete DNN Support
Olivia Terrell
Nuke Newbie
Nuke Newbie
Posts:2


--
09/30/2011 9:47 AM  
Sir, Thank you so much! It worked like a charm!

There is only one small issue. The email is sent out to the selected team member, who needs to know what the issue is about since many different selections may assigned to him. How do I capture the first part, i.e. the "Alerts" in the drop down choice Alerts|Sally.Rodgers@denvergov.org ?
Joseph Craig
DNN MVP
Posts:11667


--
10/03/2011 1:58 PM  
I'm not sure that I understand. Wouldn't the issue be described in the text of the email?

Joe Craig, Patapsco Research Group
Complete DNN Support
Syed rafiuddin
Nuke Newbie
Nuke Newbie
Posts:1


--
11/09/2015 9:52 AM  
Sir,

It wont work for multiple Items selection, works for single Item selection only.
if i selected two or Items then through error "Email is required".
Please suggest.


---