Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Robert 6 posts 116 karma points
    Sep 29, 2022 @ 08:05

    Customized Form.cshtml for specific form


    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?


  • Robert 6 posts 116 karma points
    Sep 29, 2022 @ 12:31

    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 .

Please Sign in or register to post replies

Write your reply to: