Get class of TextFragment in Xforms


In Xforms, you can insert a Header, which has two fields - Text and Css Class. I can get the text by using @Model.Value, but how can I access the class name input from my code?

Nov 04, 2015 20:01

Yot can use @Model.Class

Nov 05, 2015 7:04

That will not work because the TextFragment model is based on the HtmlFragment, which does not include a Class property. The form fields are all based on XFormsFragment, which does include a Class prop. In the form builder, a Heading has a class field, though. So why would EpiServer have that field available and not be able to access it?

Edited, Nov 05, 2015 14:22
* 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.