Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
EPiServer.CMS.UI 7.6
EPiServer.CMS.UI 9.2.0
Sep 16, 2015
Sep 28, 2015
CMS UI
Closed, Fixed and tested
In XFormInitialization.cs the method XForm_AfterSubmitPostedData should be replaced with :
public void XForm_AfterSubmitPostedData(object sender, SaveFormDataEventArgs e) { XFormControl control = (XFormControl)sender; if (control.FormDefinition.PageGuidAfterPost != Guid.Empty) { PageData pageAfterPost; var repo = ServiceLocator.Current.GetInstance<IContentRepository>(); if (repo.TryGet(control.FormDefinition.PageGuidAfterPost, out pageAfterPost)) { control.Page.Response.Redirect(UrlResolver.Current.GetUrl(pageAfterPost.ContentLink, pageAfterPost.Language.Name)); } } //After the form has been posted we remove the form elements and add a "thank you message". control.Controls.Clear(); Label label = new Label(); label.CssClass = "xformthankyoumessage"; label.Text = LocalizationService.Current.GetString("/form/postedmessage"); control.Controls.Add(label); }