Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Contribution list-> hide form View modes: 
User avatar
Member
Member
eagleag - 3/27/2011 3:49:49 AM
   
Contribution list-> hide form
Hi,
I'm using Contribution list webpart.
After user fills out form and clicks SAVE -> document is saved -> but form still shows on page.
Is there any way to hide/close form and show a THANK YOU MESSAGE?



User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/28/2011 1:21:19 PM
   
RE:Contribution list-> hide form
Hi,

you could modify the code of Contribution list webpart. The file is: ~/CMSWebParts/UserContributions/ContributionList.ascx.cs

You could add a redirection custom code to the void CMSForm_OnAfterSave() event:

UrlHelper.Redirect("~/" + CMSContext.CurrentAliasPath + ".aspx");

You could insert a label with Thank you text to the markup of above file and set its visibility to false by default. Its visibility could be set to true in the OnAfterSave event.

Best regards,
Ivana Tomanickova