Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 26, 2010 @ 11:53
    Ismail Mayat
    0

    Multi step form bug

    I am using umbraco 4.5.2 and contour 1.1. I have multi step form when i go onto third page of 4 page form i get

     

    Failed to load viewstate.  The control tree into which 
    viewstate is being loaded must match the control tree that was used to 
    save viewstate during the previous request.  For example, when adding 
    controls dynamically, the controls added during a post-back must match 
    the type and position of the controls added during the initial request.

    Regards

    Ismail

     

  • Comment author was deleted

    Aug 26, 2010 @ 12:12

    Hi Ismail,

    Do you any custom fieldtypes on that form?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 26, 2010 @ 12:23
    Ismail Mayat
    0

    Tim,

    No just standard fields and quite a few pre value fields that use documents as source.

    Regards

    Ismail

  • Comment author was deleted

    Aug 26, 2010 @ 12:27

    Owkey thanks, does it also happen when you run the form in preview mode?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 26, 2010 @ 12:32
    Ismail Mayat
    0

    Tim,

    In preview mode it does not error, however after submitting form i dont get entry in db or email which is part of workflow.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 26, 2010 @ 12:42
    Ismail Mayat
    0

    Tim,

    Ignore this issue i have figured out what it is.  I have created a new usercontrol which is the multi step bar hack i did.  I then created form doc type and that had boolean parameter to say if form needs to show stepbar.  Then in my form template i had code

    <script runat="server">
    Node current;
    void Page_Load(){
    current = Node.GetCurrent();
    }
    </script>
    <asp:content ContentPlaceHolderId="postBodyContent" runat="server">
    <%if(current.GetProperty("multiStepForm")!=null && current.GetProperty("multiStepForm").Value=="1"){%>
    <umbraco:Macro FormGuid="[#formToRender]" Alias="Contourformwithstepbar" runat="server"></umbraco:Macro>
    <%}else{%>
    <umbraco:Macro FormGuid="[#formToRender]" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
    <%}%>

    I took that code out and just left the standard umbacoContour.RenderForm and it works, well kind of the form goes to end but does not create entry and email.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft