Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 11, 2012 @ 08:58
    Fuji Kusaka
    0

    Create Form with Form Picker dataType

    Hi Guys,

    When using the FormPicker dataType from contour to "Create Form" from the Content Section itself, i can a blank view from the Design mode.

    Is this normal?What if i want to add more fields other than Name, Email and Message, do i need to go under the Contour section Design mode?

    Anyone has the same issue?

    //Fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 11, 2012 @ 13:21
    Fuji Kusaka
    0

    I have some weird errors when adding the "Form Picker" to an old website.

    After using the following code in my template to actually display chosen form i get this error if no form is being picked.

    However if i just Republish the Node without picking any form it works just fine!! 

    [NullReferenceException: Object reference not set to an instance of an object.]
       ASP.masterpages_hotelpage_master.__Render__control14(HtmlTextWriter __w, Control parameterContainer) +145
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11410062
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +11418033
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       umbraco.presentation.masterpages._default.Render(HtmlTextWriter writer) +60
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
       System.Web.UI.Page.Render(HtmlTextWriter writer) +39
       umbraco.UmbracoDefault.Render(HtmlTextWriter output) +81
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5289
      <%
              umbraco.presentation.nodeFactory.Node umbraco.presentation.nodeFactory.Node.GetCurrent();
              if(n.GetProperty("formPickerHotel").Value!=string.Empty){
                %>
                              
                  <ul class="forms clearfix">
              
                <li><href="#inline" rel="prettyPhoto[entryForm]">View Entry Form</a></li>
              </ul>
           
              <div id="inline" style="display:none;">
                <umbraco:Macro FormGuid="[#formPickerHotel]" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro
              </div>
                   
              <%
               }
      
      %>

    Any suggestions??

    //fuji

  • 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.

Please Sign in or register to post replies