volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

XForms Data MailSubject no populated

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.