I'm new to Umbraco (v4.0.3) and have downloaded the Contour package via the package repository (installed correctly). The forms are created in the normal way, and then inserted into a rich text editor via the macro button on a page and then published. The editor shows the form being rendered fine after publish, but on preview and loading the full page there is no form. It doesn't matter what form I create they won't appear. The HTML for the form fields and anything else relating to the form does not actually appear in the source code, so I can see it's not making it there.
I've looked for help regarding this issue but can't find any, so I presume it's a simple problem I'm overlooking. If someone could help me that would be great. I need to get these forms working!
No it doesn't, just a next and previous button appears after putting it in the template directly, but no other markup. The template has a form runat="server" tag surrounding it. It's just in trial mode at the moment but that shouldn't make a difference right?
Got a little bit further. Looks like there's a problem with the Umbraco Contour code as when I added the form to a richtext editor while running in debug mode I got this exception:
at System.Guid..ctor(String g)
at Umbraco.Forms.UI.Usercontrols.RenderForm.GetCurrentService() in c:\Users\Tim Geyssens\Documents\Visual Studio 2008\Umbraco\Contour\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:line 381
at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e) in c:\Users\Tim Geyssens\Documents\Visual Studio 2008\Umbraco\Contour\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:line 249
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at umbraco.presentation.macroResultWrapper.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Guid..ctor(String g) at Umbraco.Forms.UI.Usercontrols.RenderForm.GetCurrentService()in c:\Users\TimGeyssens\Documents\VisualStudio2008\Umbraco\Contour\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:line 381 at Umbraco.Forms.UI.Usercontrols.RenderForm.OnInit(EventArgs e)in c:\Users\TimGeyssens\Documents\VisualStudio2008\Umbraco\Contour\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:line 249
Any thoughts? I'd like to use Contour, but looks like I'm going to have to forego a license and hard code my forms myself at this rate as the solution is too far away at the moment
I just saw this post. I had posted the same problem earlier today, but I found a solution. When I tried to insert the contactform trough the rich text editor it didn't get rendered on the published page.
It's because <form runat="server"> </form> was missing around the macro. Couldn't get the RTE to include the <form> tag, så I had to put it in my template instead. Like this:
Contour forms won't appear on published pages
Hi
I'm new to Umbraco (v4.0.3) and have downloaded the Contour package via the package repository (installed correctly). The forms are created in the normal way, and then inserted into a rich text editor via the macro button on a page and then published. The editor shows the form being rendered fine after publish, but on preview and loading the full page there is no form. It doesn't matter what form I create they won't appear. The HTML for the form fields and anything else relating to the form does not actually appear in the source code, so I can see it's not making it there.
I've looked for help regarding this issue but can't find any, so I presume it's a simple problem I'm overlooking. If someone could help me that would be great. I need to get these forms working!
Thanks :)
Stuart
Comment author was deleted
Hi Stuart,
And what happens if you place a Contour form on your template? Does it show up then?
No it doesn't, just a next and previous button appears after putting it in the template directly, but no other markup. The template has a form runat="server" tag surrounding it. It's just in trial mode at the moment but that shouldn't make a difference right?
Comment author was deleted
Hi Stuart,
Mind sharing the code on your template ?
Cheers,
Tim
Does this help?
Got a little bit further. Looks like there's a problem with the Umbraco Contour code as when I added the form to a richtext editor while running in debug mode I got this exception:
I'm guessing because you've hardcoded in a directory value?
Comment author was deleted
Hey Stuart, and does the form work in preview ? SO if you go to the form designer and hit the preview button do you see the form then?
Yes the preview from the contour form designer page works fine. Displays the form correctly.
Isn't this the problem here?
In particular this part of the line:
c:\Users\Tim Geyssens\Documents\Visual Studio 2008\Umbraco\Contour\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs
Any thoughts? I'd like to use Contour, but looks like I'm going to have to forego a license and hard code my forms myself at this rate as the solution is too far away at the moment
The countour form doesn't render if there is any Embedded Code Blocks (<%.....%>) in masterpage.
Thanks :)
That sucks a lot though - this shouldn't be acceptable behaviour. Will this get fixed in a future version?
Comment author was deleted
Hi Stuart,
Yes the bug has been added to our bug tracker and we'll definitly look into this for the next maintenance release.
Regards,
Tim
Hi
I just saw this post. I had posted the same problem earlier today, but I found a solution. When I tried to insert the contactform trough the rich text editor it didn't get rendered on the published page.
It's because <form runat="server"> </form> was missing around the macro. Couldn't get the RTE to include the <form> tag, så I had to put it in my template instead. Like this:
<form runat="server">
<umbraco:Macro FormGuid="345678-432432b34324-34324blablabla" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
</form>
Hope it helps :)
is working on a reply...