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!

Send data to XForm

Vote:
0

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:
0

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:
0

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:
0

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
* 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.