Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Greetings!
I'm using the Doc2Form module in a template in the following way.
<% <% if(umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("toonFormulierOfferte").Value == "1") { %> <umbraco:Macro DocumentType="1154" TabName="formulier" PageTabs="0" HideTabNames="0" ShowDescriptions="0" RequiredText="" SubmitButtonText="Verstuur" PreviousButtonText="" NextButtonText="" RedirectToNode="1323" StorePropertiesInCookies="" SendEmailResponse="True" ResponseSubject="Contactaanvraag" ResponseMessage="Bedankt voor uw contactaanvraag" ResponseEmailFieldAlias="e-mail" EmailForm="True" FormSubject="Contactaanvraag" FormToEmailAddress="[email protected]" FormFromEmailAddress="[email protected]" TextOnSubmit="Bedankt voor uw contactaanvraag!" UseAjax="1" DefaultValueNode="" Alias="Doc2FormEmail" runat="server" /> <% } %> <% if(umbraco.presentation.nodeFactory.Node.GetCurrent().GetProperty("toonContactformulier").Value == "1") { %> <umbraco:Macro DocumentType="1290" TabName="formulier" PageTabs="0" HideTabNames="1" ShowDescriptions="0" RequiredText="" SubmitButtonText="Verstuur" PreviousButtonText="" NextButtonText="" RedirectToNode="1323" StorePropertiesInCookies="" SendEmailResponse="True" ResponseSubject="Contactaanvraag" ResponseMessage="Bedankt voor uw contactaanvraag" ResponseEmailFieldAlias="e-mail" EmailForm="True" FormSubject="Contactaanvraag" FormToEmailAddress="[email protected]" FormFromEmailAddress="[email protected]" TextOnSubmit="Bedankt voor uw contactaanvraag!" UseAjax="1" DefaultValueNode="" Alias="Doc2FormEmail" runat="server" /> <% } %>
Now the problem.
If they both are enabled(1) they should show, witch it does, and it works... But
if 1 is false, or 2 are false, they don't show, witch is currect, but then were getting the following error in javascript :
Awaiting your comments.
Hm... Bug ? When I edit the above topic to fix the typo I'm getting a Xslt error ;)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Using double doc2form in a template
Greetings!
I'm using the Doc2Form module in a template in the following way.
Now the problem.
If they both are enabled(1) they should show, witch it does, and it works... But
if 1 is false, or 2 are false, they don't show, witch is currect, but then were getting the following error in javascript :
Error: document.getElementById("ContentPlaceHolderDefault_MainContent_Doc2Form_5_VS") is null
Source File: http://cms.test.sitename.com/nl/contact.aspx
Line: 180
if you replace 'sitename' with 'ned' and 'finity' pasted together, you can see it for yourself. Dont want to create unwanted links to the website ;)
Awaiting your comments.
Hm... Bug ? When I edit the above topic to fix the typo I'm getting a Xslt error ;)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.