I can't seem to get my contact form to render and I'm not sure what I've done wrong.
This is my template code
<form runat="server"> <umbraco:Macro DocumentType="1092" Template="" TabName="FormFields" PageTabs="0" HideTabNames="0" ChooseWhereToStore="1093" EditMode="0" ShowTitle="0" TitleName="" SaveMemberAlias=", " ShowDescriptions="0" SubmitButtonText="Submit" PreviousButtonText="" NextButtonText="" RequiredText="* required" PublishOnSubmit="0" RefreshToParent="0" RedirectToNode="" PublishWithUserId="" StorePropertiesInCookies="" SendEmailResponse="0" TextOnSubmit="Thank you for your comment to the Gordon Beattie Website" ResponseSubject="" ResponseEmailFieldAlias=", " ResponseCopyTo="" EmailForm="1" FormSubject="Your comment to the Website" FormMessage="Custom message here before Form content: [#FORM]" FormToEmailAddress="" FormFromEmailAddress="[email protected]" UseAjax="0" DefaultValueNode="" Alias="Doc2FormComplete" runat="server"></umbraco:Macro> </form>
And this is the errors from the debug output
Error returning dictionary item 'title' No key title exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at umbraco.library.GetDictionaryItem(String Key) 0.00667916 0.000240 library Error returning dictionary item 'previous' No key previous exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at umbraco.library.GetDictionaryItem(String Key) 0.0070642325 0.000385 library Error returning dictionary item 'next' No key next exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at umbraco.library.GetDictionaryItem(String Key)
if you create dictionary items with those labels that will get rid of the errors however i dont think that is the issue, do a search on the forum a few people have had issues with doc2form not rendering.
I have searched, that what lead me to add the form tags in my template and try setting the form fields so they weren't required. I also deleted what I previously had and followed the step by step guide found on the old forums to get this. Now I really don't know what else to try.
In the doc2form code there is a loop over all tabs for the document type passed in and it compares tab name with name passed in however the compare is lowercase e.g
so the caption is lowered but the _tabName which is what you pass in is not lowered you have to lower it yourself slight oversight by Casey Neehouse ;-}
Doc2Form rendering issue
I can't seem to get my contact form to render and I'm not sure what I've done wrong.
This is my template code
<form runat="server">
<umbraco:Macro DocumentType="1092" Template="" TabName="FormFields" PageTabs="0"
HideTabNames="0" ChooseWhereToStore="1093" EditMode="0" ShowTitle="0" TitleName=""
SaveMemberAlias=", " ShowDescriptions="0" SubmitButtonText="Submit" PreviousButtonText=""
NextButtonText="" RequiredText="* required" PublishOnSubmit="0" RefreshToParent="0" RedirectToNode=""
PublishWithUserId="" StorePropertiesInCookies="" SendEmailResponse="0"
TextOnSubmit="Thank you for your comment to the Gordon Beattie Website" ResponseSubject=""
ResponseEmailFieldAlias=", " ResponseCopyTo=""
EmailForm="1" FormSubject="Your comment to the Website" FormMessage="Custom message here before Form content: [#FORM]"
FormToEmailAddress="" FormFromEmailAddress="[email protected]" UseAjax="0"
DefaultValueNode="" Alias="Doc2FormComplete" runat="server"></umbraco:Macro>
</form>
And this is the errors from the debug output
Error returning dictionary item 'title'
No key title exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at umbraco.library.GetDictionaryItem(String Key) 0.00667916 0.000240
library Error returning dictionary item 'previous'
No key previous exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at umbraco.library.GetDictionaryItem(String Key) 0.0070642325 0.000385
library Error returning dictionary item 'next'
No key next exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at umbraco.library.GetDictionaryItem(String Key)
I'm using Umbraco 4.5.2 btw.
if you create dictionary items with those labels that will get rid of the errors however i dont think that is the issue, do a search on the forum a few people have had issues with doc2form not rendering.
Regards
Ismail
I have searched, that what lead me to add the form tags in my template and try setting the form fields so they weren't required. I also deleted what I previously had and followed the step by step guide found on the old forums to get this. Now I really don't know what else to try.
Suzyb,
Try changing the macro parameter
TabName="FormFields"
to
TabName="formfields"
If I remember rightly it has to be lower case.
regards
Ismail
That worked. Although I don't quite understand why as my tab name is uppercase. Are the tab names stored lowercase.
Thanks very much for your help.
In the doc2form code there is a loop over all tabs for the document type passed in and it compares tab name with name passed in however the compare is lowercase e.g
so the caption is lowered but the _tabName which is what you pass in is not lowered you have to lower it yourself slight oversight by Casey Neehouse ;-}
Dont forget to mark solution.
Regards
Ismail
So it wasn't me that missed something :P
Thanks again.
is working on a reply...