I've been playing around with doc2form and I managed to get it to display the submit button on the page, but nothing more. I know I am doing something wrong when specifying the tabs but I don't know what.
Is the form over more than one tab? The reason i ask is you have in TabName content but you have set pagetabs to 1. If only one tab then set to 0 for pagetabs.
<script type="text/javascript"> //<![CDATA[ var Page_ValidationSummaries = new Array(document.getElementById("ContentPlaceHolderDefault_mainContent_contentRight_Doc2Form_1_VS")); //]]>
You have pasted source of the page i want to see the stack trace that should be generated at the bottom of the page to see if there any errors?
You may need to download the source and open in vs then attach process to try and debug one of the gotchas i had was my tab name was something like Main Content and doc2form wants it in lower case wasnt until i checked the source that i figured that one out. Ps I have only ever used it pre 4.5
Error returning dictionary item 'thanks' No key thanks exists in dictionary at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) at umbraco.library.GetDictionaryItem(String Key)
and the same error for the dictionary items title, submit, previous and next.
Can you try my hacked version from http://www.box.net/shared/mdddu1cu5g its not a package so can you make a back up of your doc2form dll and copy over whatever is in my bin in the zip then try. If that dont work replace your backup then try debugging the source that may give you a pointer as to the error.
In the bin dir of your install you will have doc2form.dll take a copy of that and put it somewhere safe. Then take a copy of doc2form.dll from my zip and copy that over to your bin. One thing im not sure if i include dll in the zip think i do if not you will need to build the source and create new dll.
Problems with doc2form
I've been playing around with doc2form and I managed to get it to display the submit button on the page, but nothing more. I know I am doing something wrong when specifying the tabs but I don't know what.
Doesn anyone have a tutorial for it?
The one over here has no more images http://www.blogfodder.co.uk/2009/10/16/how-to-get-doc2form-for-umbraco
Thanks a lot
Can you paste your macro as it stands in the template.
Regards
Ismail
<form runat="server">
<umbraco:Macro DocumentType="1102" Template="" TabName="content" PageTabs="1" HideTabNames="0" ChooseWhereToStore="1090" EditMode="0" ShowTitle="1" TitleName="" SaveMemberAlias=", " ShowDescriptions="0" RequiredText="field is manditory" SubmitButtonText="" PreviousButtonText="" NextButtonText="" PublishOnSubmit="0" RefreshToParent="0" RedirectToNode="" PublishWithUserId="" StorePropertiesInCookies="" UseAjax="0" DefaultValueNode="" Alias="Doc2FormInput" runat="server"></umbraco:Macro>
</form>
The problem is that I have no idea what the tabs are about.
Is the form over more than one tab? The reason i ask is you have in TabName content but you have set pagetabs to 1. If only one tab then set to 0 for pagetabs.
Regards
Ismail
It's only 1 tab, so I changed the parameter, but still no luck.
Thanks for trying though.
Can you hit the page again this time tag ?umbDebugShowTrace=true onto the url so you should then see debug stack trace, any errors there?
Also what version of umbraco you running?
Regards
Ismail
This is what I get in the source of the page with the tag you gave me. I'm running 4.5.1. I'm not sure it's updated for this version.
You have pasted source of the page i want to see the stack trace that should be generated at the bottom of the page to see if there any errors?
You may need to download the source and open in vs then attach process to try and debug one of the gotchas i had was my tab name was something like Main Content and doc2form wants it in lower case wasnt until i checked the source that i figured that one out. Ps I have only ever used it pre 4.5
Regards
Ismail
Right, I forgot to scroll down.
Here's the text in red that I found:
Error returning dictionary item 'thanks'
No key thanks exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at umbraco.library.GetDictionaryItem(String Key)
and the same error for the dictionary items title, submit, previous and next.
Cheers,
Ciprian
Ciprian,
That should not stop it from working. On the document type you are using to create the form what fields do you have any custom data types ?
Regards
Ismail
Nope, I especially kept it simple. Just 3 text strings: name, email and comment.
Cheers,
Ciprian
Can you try my hacked version from http://www.box.net/shared/mdddu1cu5g its not a package so can you make a back up of your doc2form dll and copy over whatever is in my bin in the zip then try. If that dont work replace your backup then try debugging the source that may give you a pointer as to the error.
Regards
Ismail
Here's a newbie question, but where can I find the original doc2form dll in order to replace it with your version?
Should I replace it in the old zip and reinstall the package?
In the bin dir of your install you will have doc2form.dll take a copy of that and put it somewhere safe. Then take a copy of doc2form.dll from my zip and copy that over to your bin. One thing im not sure if i include dll in the zip think i do if not you will need to build the source and create new dll.
Regards
Ismail
is working on a reply...