Try our conversational search powered by Generative AI!

about xforms (adding few fields in it)


Hello everyone,

I have a user control which hold 4-5 text box control. I have to add this control before when xform shows the xform controls.
Also, I have to add one more additional field at the end of xform templates, so the Xform should look like this

1.  myfield1  textbox1
2.  myField2  Textbox2
3.  Xforms Fields
4.  mySummary textbox

In other words: if my xform contains 5 fields from the editor, I need to add 4-5 fields on to the top of it and one more field at the end.
Ideally it should display those textboxes at the top and bottom when the xform gets loaded. When i hit the submit button, it should save the contorl content in the epi-server database as xform contents, So that, it can be ne refilled from epi-server when i load the form on edit mode using episerver.

Any bright ideas or sample code. Please help.


May 25, 2010 10:27


Regarding how to save the data from the additional fields you can attach to the BeforeSubmitPostedData event on the XFormControl instance. You can add additional data to the e.FormData property that will be saved together with the data from the form. The Xforms tech note should have more info about this.

Regarding your wish to "Refill" the form data from EPiServer I am note sure what you actually want to do here. The form data tab will show any additional data that you store with the form but it's not possible to reedit the form data (unless you add a plug-in that can do this). Could you be more precise what you mean with this?

Linus Ekström
EPiServer Development Team

May 25, 2010 15:49
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.