XForm - reset form

Vote:
 
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:
 
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.