WFM: Change the default forms root used in the create dialog

21 januari 2013 om 00:00 by Ruud van Falier - Post a comment

When you create a new form with the Web Forms for Marketers module, the forms are stored in a specific folder by default.
This happens when you go to All Applications -> Web Forms for Marketers -> Create a New Form and create a form (the root path will be displayed before the form is created).

The forms will be stored in /sitecore/system/Modules/Web Forms for Marketers/Sample forms.

I'm not sure if it was a bug or if I just missed something, but during installation I did not get the option to change the forms root location.
My expectation was that it could be changed with the "formsRoot" attribute on the configuration nodes in the web.config.
However, that did not seem the case.
I tried to modify this attribute for several sites (shell, website, modules_shell, modules_website), but without result.

It turns out that the location can be changed in the Core database.
Locate item {5BDD9307-72C7-4831-A1B8-DF4C02399AC2}, which is stored in the path /sitecore/content/Documents and settings/All users/Start menu/Programs/Web Forms for Marketers/Create a New Form.
There you can change the ID in the "Message" field.

Change it to the desired root folder ID and it's fixed.

If you think that I'm doing this wrong and there is a better way, please let me know by leaving a comment or contact me on Twitter: @BrruuD