Can't insert a Web Forms For Marketers form because there are no Placeholders

无人久伴 提交于 2019-12-10 21:34:29

问题


We are trying to fix an old issue with our Web Forms for Marketers module (I think it is 2.2, but I don't know how to tell) in Sitecore 6.4.1 running .NET Framework 2.0. I am having trouble even adding a form to an item. I am making an assumption that I should be using the "Insert Form" button in the presentation tab of my item.

When I click that button I get a wizard that goes fine until it tells me the following: "There are no allowed placeholders in order to insert a new form."

Ignorning the error's grammar issue for a moment, I assume it is telling me that there are prequisites for an item to allow it to work with a form. I looked around and thought that maybe the problem in this issue was related:

Cannot get a Sitecore form to display in a placeholder (Web Forms for Marketers module)

So I made sure a Form was in my template. It is there now, but throws a "value cannot be null" exception in the logs when I click "edit" on the Form item in the Device Editor.

I have a Placeholder Setting as well since I have read that I need that for some reason. It is named "form" and the Settings Item is /content.

Am I missing a perquisite? Do I need to reinstall the module?


回答1:


I suspect you need to add a placeholder to the list of placeholders that are allowed to contain forms. The easiest way to do this is with the Restricting Placeholders application WFM installs. Login to the desktop, and under Sitecore -> All Applications -> Web Forms For Marketers -> Restricting Placeholders assign one or more where forms can live.

See http://sdn.sitecore.net/upload/sdn5/products/web_forms2/web_forms_for_marketers_v2_reference_usletter.pdf, around page 7.




回答2:


I had a similar problem and after long time found that it was not supported to use uppercase letters or words in the keys for placeholders or when referencing them. So after I changed these keys to lowercase my problems simply was gone.



来源:https://stackoverflow.com/questions/10333848/cant-insert-a-web-forms-for-marketers-form-because-there-are-no-placeholders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!