Copied to clipboard

Flag this post as spam?

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


  • Katie 6 posts 76 karma points
    Jul 25, 2016 @ 02:17
    Katie
    0

    Umbraco forms

    Hi, I am trying to create a form, i currently have approx 30 questions but still need to add more but won't let me save the form if I add anymore, is there a limit and if there is can I increase the limit? Thanks Katie

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 25, 2016 @ 07:49
    Dennis Aaen
    1

    Hi Katie and welcome to our.

    There is no limit on how many questions that you can have in your form.

    Perhaps it could be a good idea to use multi step forms, if you have a lot of questions so it easier for the user to use.

    Hope this helps,

    /Dennis

  • Katie 6 posts 76 karma points
    Jul 26, 2016 @ 01:13
    Katie
    0

    Hi Dennis,

    Thanks, that is making it easier, however I still reach a certain spot and it won't let me save, it says - Failed to Save Form - and it just won't let me add anymore once i reach this point. Is there anyway I can check what the problem is? Thanks Katie

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 26, 2016 @ 07:03
    Dennis Aaen
    0

    Hi Katie,

    One place to check for more information about why you canĀ“t save the form are in the log files.

    You can find the logs in the App_Data/Logs

    Hope this helps,

    /Dennis

  • Fergus Davidson 309 posts 588 karma points
    Jul 26, 2016 @ 07:26
    Fergus Davidson
    0

    is it possible that one of your field names is over the length limit? i think they have a limit of 255, but would need to check

  • Katie 6 posts 76 karma points
    Jul 26, 2016 @ 23:25
    Katie
    0

    Hi Fergus, no because I have tried just adding a field with just a number, it just won't let me add anymore fields

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 27, 2016 @ 00:38
    Nicholas Westby
    0

    I have seen a bug in Umbraco Forms that seems to be caused because Umbraco or ASP.NET has a default limit on JSON requests set to some relatively low value.

    When a form is complex enough that the JSON request exceeds that default limit, it can cause errors.

    I suppose the workaround would be to increase that JSON limit (if that is indeed what is causing the issue).

  • Katie 6 posts 76 karma points
    Jul 27, 2016 @ 01:07
    Katie
    0

    Thanks Nicholas, how do I find out if that is the problem and how do I increase the JSON limit? Thanks Katie

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 27, 2016 @ 15:18
    Nicholas Westby
    0

    Open the network tab in Chrome developer tools and save the form. If you see a JSON request that responds with a 500 error, then that is a good sign the JSON is too long.

    Typically, the response to that request will contain further details about the error (again, you can view that response in the network tab).

    Let me know what you find out by doing that.

  • Katie 6 posts 76 karma points
    Jul 28, 2016 @ 00:03
    Katie
    0

    Hi Nicholas, I have done what you suggested and here is some info in relation to JSON. Does any of this make sense?

    The script \u0027{0}\u0027 could not be loaded.","parameterCount":"Parameter count mismatch.","cannotDeserializeEmptyString":"Cannot deserialize empty string.","formatInvalidString":"Input string was not in a correct format.","invalidTimeout":"Value must be greater than or equal to zero.","cannotAbortBeforeStart":"Cannot abort when executor has not started.","argument":"Value does not fall within the expected range.","cannotDeserializeInvalidJson":"Cannot deserialize. The data does not correspond to valid JSON.","invalidHttpVerb":"httpVerb cannot be set to an empty or null string.","nullWebRequest":"Cannot call executeRequest with a null webRequest.","eventHandlerInvalid":"Handler was not added through the Sys.UI.DomEvent.addHandler method.","cannotSerializeNonFiniteNumbers":"Cannot serialize non finite numbers.","argumentUndefined":"Value cannot be undefined.","webServiceInvalidReturnType":"The server method \u0027{0}\u0027 returned an invalid type. Expected type: {1}","servicePathNotSet":"The path to the web service has not been set.","argumentTypeWithTypes":"Object of type \u0027{0}\u0027 cannot be converted to type \u0027{1}\u0027.","cannotCallOnceStarted":"Cannot call {0} once started.","badBaseUrl1":"Base URL does not contain ://.","badBaseUrl2":"Base URL does not contain another /.","badBaseUrl3":"Cannot find last / in base URL.","setExecutorAfterActive":"Cannot set executor after it has become active.","paramName":"Parameter name: {0}","nullReferenceInPath":"Null reference while evaluating data path: \u0027{0}\u0027.","cannotCallOutsideHandler":"Cannot call {0} outside of a completed event handler.","cannotSerializeObjectWithCycle":"Cannot serialize object with cyclic reference within child properties.","format":"One of the identified items was in an invalid format.","assertFailedCaller":"Assertion Failed: {0}\r\nat {1}","argumentOutOfRange":"Specified argument was out of the range of valid values.","webServiceTimedOut":"The server method \u0027{0}\u0027 timed out.","notImplemented":"The method or operation is not implemented.","assertFailed":"Assertion Failed: {0}","invalidOperation":"Operation is not valid due to the current state of the object.","breakIntoDebugger":"{0}\r\n\r\nBreak into debugger?"};

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 28, 2016 @ 17:11
    Nicholas Westby
    0

    Not sure. There is a lot going on in the text. Here are some web.config changes you can try:

      <system.web>
        <!-- 10,240 is 10MB. -->
        <httpRuntime maxRequestLength="10240" />
    
      <system.webServer>
        <security>
          <requestFiltering>
            <!-- 10,485,760 is 10MB. -->
            <requestLimits maxAllowedContentLength="10485760" maxUrl="4096" maxQueryString="2048">
                <headerLimits>
                </headerLimits>
            </requestLimits>
    
       <system.web.extensions>
           <scripting>
               <webServices>
                   <!-- 10,485,760 is 10MB. -->
                   <jsonSerialization maxJsonLength="10485760"/>
    
Please Sign in or register to post replies

Write your reply to:

Draft