XForms Data MailSubject no populated

Vote:
 

Hi,

Im using the following:

1
2
3
4
5
6
[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:

1
2
3
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

#131827
Aug 06, 2015 12:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.