This gives me my FormGuid when I choose a Contour form in the editor. Just spits out my ID.
I then try to put the FormGuid inside the Contour Macro inside my template like so:
<form ID="GeneralContactForm" runat="server"> Should be a contact form <umbraco:Macro FormGuid="<umbraco:Item field="chooseContactForm" runat="server"></umbraco:Item> " Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro> </form>
I am assuming you can not put a runat="server" inside of another. But what is the alternative to get the Guid from the ChooseContactForm field for my editors. Since we can not put .Net inside XSLT, this is my alternative solution, but I get and error <div class='contourErrorMessage'>Form could not be loaded, form is either missing or damaged</div>
Add Contour Macro with Umbraco:Item for FormGuid
Don't know if this has been asked yet.
I am putting a Contour form inside my template, no problem.
I want the FormGuid to pull from my editors.
I have the FormGuid ID using
<umbraco:Item field="chooseContactForm" runat="server"></umbraco:Item>
This gives me my FormGuid when I choose a Contour form in the editor. Just spits out my ID.
I then try to put the FormGuid inside the Contour Macro inside my template like so:
<form ID="GeneralContactForm" runat="server">
Should be a contact form
<umbraco:Macro FormGuid="<umbraco:Item field="chooseContactForm" runat="server"></umbraco:Item>
" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
</form>
I am assuming you can not put a runat="server" inside of another. But what is the alternative to get the Guid from the ChooseContactForm field for my editors. Since we can not put .Net inside XSLT, this is my alternative solution, but I get and error
<div class='contourErrorMessage'>Form could not be loaded, form is either missing or damaged</div>
All help is much appricated. Thanks.
Carlos,
I have done something similar and its all done by using macro syntax eg
<umbraco:Macro ID="Macro1" FormGuid="[#formToRender]" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
just replace #formToRender with #chooseContactForm and it should be good to go.
Regards
Ismail
@Ismali,
That was it. Thank you very much! I have been looking for a way to do that for 2 days. Always the simple fix.
Again thanks.
Sorry spelled your name wrong, Ismail.
Thanks again.
is working on a reply...