Hi,
Im using the following:
[AcceptVerbs(HttpVerbs.Post)]
public
ActionResult XFormPost(XFormPostedData data,
string
contentId =
""
)
{
MailTo = data.XForm.MailTo;
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:
MailTo = data.XForm.MailTo !=
null
&& data.XForm.MailTo !=
? data.XForm.MailTo : data.SelectedSubmit.Receiver;
MailSubject = data.XForm.MailSubject !=
&& 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
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