November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
One of the way to achieve this would be to override editor templates for data models used in XForm. You can take a look at original code here: \modules\_protected\CMS\EPiServer.Cms.Shell.UI.zip\Util\Views\Shared\EditorTemplates\. You would need to place these overwritten templates somewhere in your own site's views folders where view engine would be able to find those.
This enables you to overwrite XForm rendering completely.
We are using Episerver 8 MVC and we are using XForms - which we are quite shocked why this has never progressed in the same way as Episerver has regarding Mobile optimisation.
Any way, we are looking to add a Red asterix alongside each required field - as this is required for assessibilty - this was missing way back n Episerver 6 R2 and we found a way to add an asterix but this was using Web forms - MVC in 8 seems like a completely different kettle of fish.
We have a method to change each Table format into the correct Divs but we cant see a way to add an Asterix - we are currently using this:
using (Html.BeginXForm(Model, htmlAttributes: new { @class = "form xform" })))ViewData["XFormFragments"] ?? Model.CreateHtmlFragments())
{
if (Model != null)
{
foreach (HtmlFragment fragment in (IEnumerable
{
@Html.Fragment(XFormHelper.CleanupXFormHtmlMarkup(fragment))
}
}
}
Is this at all possible?
Thanks for your help