Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Im using the following:
[AcceptVerbs(HttpVerbs.Post)]
public
ActionResult XFormPost(XFormPostedData data,
string
contentId =
""
)
{
string
MailTo = data.XForm.MailTo;
string
MailSubject = data.XForm.MailSubject;
}
and both MailTo and MailSubject are empty even though the fields are filled in in the CMS. If I use this:
string
MailTo = data.XForm.MailTo !=
null
&& data.XForm.MailTo !=
""
? data.XForm.MailTo : data.SelectedSubmit.Receiver;
string
MailSubject = data.XForm.MailSubject !=
null
&& data.XForm.MailSubject !=
""
? data.XForm.MailSubject : data.SelectedSubmit.Subject;
then the MailTo is populated but the Subject seems to be auto generated and says something like: Form data from "MY FORM NAME" (NAME OF SITE) as this seems to be coming from SelectedSubmit.
Jon