Send data to XForm

Vote:
 

Hi, is it possible to send data to an XForm (via querystring), so that some fields may be pre-filled?

Sincerely
Svein Terje Gaup

#44703
Oct 13, 2010 11:24
Vote:
 

You could probably hook into the XFormControls ControlsCreated event and browse through the control collection or otherwise maniuplating the data. Or perhaps you can use XFormControl.FormDefinition.SetInstanceData from a BeforeLoadingForm event handler?

#44705
Oct 13, 2010 11:51
Vote:
 

Ok, so I am guessing there is no built-in querystring-parsing or other such feature. Coding will be required. Was hoping I wouldn't have to :P

#44710
Oct 13, 2010 12:08
Vote:
 

Anders wrote a cool post about extending xform that might help: http://world.episerver.com/Blogs/Anders-Hattestad/Dates/2010/5/Extend-EPiServer-XForm/

Frederik

#44739
Oct 13, 2010 21:16