London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

XForm - reset form

Vote:
0
I want to reset all fields (textboxes and textareas) in an Xform after the submit button is pressed. Does anyone know how to do this?
#12576
Apr 05, 2006 10:51
Vote:
0
Just add the following code: FormControl.AfterSubmitPostedData += new SaveFormDataEventHandler(FormControl_AfterSubmitPostedData2); public void FormControl_AfterSubmitPostedData2(object sender, SaveFormDataEventArgs e) { FormControl.Data = null; } ps. The code above builds on the alternative xform user control found at this link: http://www.episerver.com/en/EPiServer_Knowledge_Center/developerforum/2628/6042/6043/ ds.
#14539
Apr 07, 2006 10:49
* 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.