Hi, did somebody had experience with creating fields for xform dynamically?
The user can add polls through the view (not inside edit) so I need to add this to the XForm fields programatically.
This is a part of the solution:
XFormData data = form.CreateFormData(); data.PageGuid = pageData.PageGuid; data.SetValue("MyCustomFieldName", "MyValueAsString"); data.ChannelOptions = ChannelOptions.Database; data.Send();
This link may give you some idea.http://www.patrickvankleef.com/2014/11/21/episerver-strongly-typed-xforms/
Regards/K
Hi, did somebody had experience with creating fields for xform dynamically?
The user can add polls through the view (not inside edit) so I need to add this to the XForm fields programatically.
This is a part of the solution: