This project is read-only.


Custom Forms Content Type Alternate shape not render after form submit with validation fail


I have created a Custom Forms with Content Type MarketingPreferences and change the view in theme with Content.Edit-MarketingPreferences.cshtml which works fine when the form load first time, but if the form is posted with validation error with required fields the above alternate is not loaded, instead it jumps back to the Content.Edit.cshtml.


sebastienros wrote Apr 24, 2013 at 7:27 PM

Fixed in changeset fd3ad7f6d401

sebastienros wrote Apr 24, 2013 at 7:29 PM

Note that templates should be named Content-MarketingPreferences.Edit. The content type always takes precedence in template file names, even if the real alternate is Content_Edit__MarketingPreferences

sfmskywalker wrote Mar 28, 2014 at 1:28 AM

Fixed in changeset 5e080ca39fc00f545c0b3ba1fcced17d8f591a99