I´m trying by following the documentation to create a customized Form.cshtml by adding a folder with form id as name. Inside of this i put a copy of the original Form.cshtml and make some adjustments.
I have tried and put this folder all over the place :)
Inside of views/partials/forms/, views/partials/forms/themes/, views/partials/forms/themes/default/, views/partials/forms/themes/custom/
Cant seem to get my custom Form.cshtml in Render.cshtml:
var formThemedView = FormThemeResolver.GetFormView(Model);
Is this still functional or has this function been removed?
Found the issue.
FormThemeResolver.GetFormView does not contain any code regarding FormId. So the function to use customized form view does not exist :)
I have created a new class based on FormThemeResolver which handles customized form view from FormId .
Customized Form.cshtml for specific form
Hi,
I´m trying by following the documentation to create a customized
Form.cshtml
by adding a folder with form id as name. Inside of this i put a copy of the originalForm.cshtml
and make some adjustments.I have tried and put this folder all over the place :) Inside of
views/partials/forms/
,views/partials/forms/themes/
,views/partials/forms/themes/default/
,views/partials/forms/themes/custom/
Cant seem to get my custom
Form.cshtml
inRender.cshtml
:Is this still functional or has this function been removed?
Regards
//Robert
Found the issue.
FormThemeResolver.GetFormView
does not contain any code regardingFormId
. So the function to use customized form view does not exist :)I have created a new class based on
FormThemeResolver
which handles customized form view fromFormId
.is working on a reply...