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
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
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).
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).
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?"};
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
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
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
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
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
Hi Fergus, no because I have tried just adding a field with just a number, it just won't let me add anymore fields
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).
Thanks Nicholas, how do I find out if that is the problem and how do I increase the JSON limit? Thanks Katie
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.
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?"};
Not sure. There is a lot going on in the text. Here are some web.config changes you can try:
is working on a reply...