Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 474 posts 932 karma points
    Nov 30, 2010 @ 13:24
    suzyb
    0

    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.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 30, 2010 @ 13:27
    Ismail Mayat
    0

    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

  • suzyb 474 posts 932 karma points
    Nov 30, 2010 @ 14:03
    suzyb
    0

    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.

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 30, 2010 @ 14:09
    Ismail Mayat
    0

    Suzyb,

    Try changing the macro parameter 

    TabName="FormFields"

    to

    TabName="formfields"

    If I remember rightly it has to be lower case.

    regards

    Ismail

  • suzyb 474 posts 932 karma points
    Nov 30, 2010 @ 14:12
    suzyb
    0

    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.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 30, 2010 @ 14:24
    Ismail Mayat
    0

    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

    if (("," + _tabName.Replace(", ", ",") + ",").IndexOf("," + t.Caption.ToLower() + ",") > -1)

    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

  • suzyb 474 posts 932 karma points
    Nov 30, 2010 @ 14:26
    suzyb
    0

    So it wasn't me that missed something :P

    Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft