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.cshtmlby adding a folder with form id as name. Inside of this i put a copy of the originalForm.cshtmland 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.cshtmlinRender.cshtml:Is this still functional or has this function been removed?
Regards
//Robert
Found the issue.
FormThemeResolver.GetFormViewdoes not contain any code regardingFormId. So the function to use customized form view does not exist :)I have created a new class based on
FormThemeResolverwhich handles customized form view fromFormId.is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.