Note the difference between the action method Render, and RenderForm. The latter is newer one that takes the theme as parameter and uses the new Themes folder structure (from ˜/Views/Partials/Forms/Themes). The (obsolete?) Render ignores the theme parameter and renders the form using the (older) partials (from ˜/Views/Partials/Forms using the Form.cshtml and fieldtypesz from the FieldTypes folder).
For all the Googlers out there like me - I want to provide an update for applying a theme to a form.
@Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Model.Content.GetPropertyValue("form"), FormTheme = "signup" })
Where renderUmbracoForm is the alias of InsertUmbracoFormWithTheme macro (by default, although you can change this in the back office under Developer/Macros).
To set a theme, add the macro parameter FormTheme and set it equal to the folder name under Views/Partials/Forms/{{themeName}} (which mine was named signup).
Just as an added bit of info - you only need to include the files under your theme folder that you wish to overwrite.
Applying a theme using the Form Picker
I just upgraded my Umbraco Forms installation to version 6.0.2. Instead of using the macro to insert a form, the Form Picker datatype is used.
How am I able to apply a Theme (other than the default) to a picked form?
Ok, got it, here's the trick:
Note the difference between the action method Render, and RenderForm. The latter is newer one that takes the theme as parameter and uses the new Themes folder structure (from ˜/Views/Partials/Forms/Themes). The (obsolete?) Render ignores the theme parameter and renders the form using the (older) partials (from ˜/Views/Partials/Forms using the Form.cshtml and fieldtypesz from the FieldTypes folder).
For all the Googlers out there like me - I want to provide an update for applying a theme to a form.
Where renderUmbracoForm is the alias of InsertUmbracoFormWithTheme macro (by default, although you can change this in the back office under Developer/Macros).
To set a theme, add the macro parameter FormTheme and set it equal to the folder name under Views/Partials/Forms/{{themeName}} (which mine was named signup).
Just as an added bit of info - you only need to include the files under your theme folder that you wish to overwrite.
is working on a reply...