Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom form elements views are not applied #828

Open
SHIFT969 opened this issue Jun 22, 2022 · 1 comment
Open

Custom form elements views are not applied #828

SHIFT969 opened this issue Jun 22, 2022 · 1 comment

Comments

@SHIFT969
Copy link

Describe the bug
Form elements view location "/Features/Shared/Views/ElementBlocks/{0}.cshtml" defined in FeatureViewLocationExpander is not being used.

To Reproduce

  1. Go to "Features\Shared\Views\ElementBlocks\TextboxElementBlock.cshtml"
  2. Add breakpoint anywhere or "TEST" text in <label> tag.
  3. Build and run the website.
  4. Create new with TextboxElementBlock and place it anywhere.
  5. Go to the page with the new form.
  6. Fom is rendered but custom view is not used. (no breakpoint hit, no sample text)

Expected behavior
Views from location "/Features/Shared/Views/ElementBlocks/{0}.cshtml" defined in FeatureViewLocationExpander should be used.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: chrome
  • Versions: CMS 12.7.0; Forms 5.1.0

Additional context
Editing forms.config doesn't seem to work either. I assume it's episerver error.

@daniel-isaacs
Copy link
Collaborator

This should be fixed via this change: c22324f

Working as expected for me now:

image

@SHIFT969 - can you confirm it's now functioning correctly for you as well, and this can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants