November Happy Hour will be moved to Thursday December 5th.

Get class of TextFragment in Xforms

Vote:
 

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?

#140950
Nov 04, 2015 20:01
Vote:
 

Yot can use @Model.Class

#140958
Nov 05, 2015 7:04
Vote:
 

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?

#140980
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.