I've created a contour form with several field types: textfield, radiobuttonlist, file upload, datepicker, mandatory fields, e-mail regex checker and when I submit the form the result gets added to the "entries" but the page ends in an error:
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I would recommend you try upgrading to 1.4.1.1 and try again, I seem to recall that I've seen this problem in older versions, but it went away after I upgraded.
Hmm, weird! Okay, so what kinds of workflow items do you have for this form? And do you have it set to redirect to a node after submission? Maybe the node has not been picked?
Input string was not in a correct format
I've created a contour form with several field types: textfield, radiobuttonlist, file upload, datepicker, mandatory fields, e-mail regex checker and when I submit the form the result gets added to the "entries" but the page ends in an error:
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
I don't have the source of RenderForm.ascx.cs so can't lookup what exactly it can't convert to an Int.
I'm using umbraco 4.6 beta with contour 1.1.0.24499
One strange thing to notice is that when viewing the form using the preview instead of via the macro (previewFormDialog.aspx) it works fine!
I would recommend you try upgrading to 1.4.1.1 and try again, I seem to recall that I've seen this problem in older versions, but it went away after I upgraded.
problem is still there after upgrading.
Hmm, weird! Okay, so what kinds of workflow items do you have for this form? And do you have it set to redirect to a node after submission? Maybe the node has not been picked?
wow, good catch! I had it set to redirect to: child::* [@isDoc].
What would be the correct xpath to redirect to the first child of the current page?
You could try child::* [@isDoc]/@id instead.
hmm doesn't work. Same error still.
I'm wondering where you enter that XPATH anyway? I wasn't aware that there was anything but a content picker on the form that will do the redirect?
in the form settings tab it says at the bottom: Or enter Xpath
Ah okay, that's a new one for me! Can you use $currentPage/child::* [@isDoc]/@id maybe?
works!
Ah so glad this forum thread existed, saved my bacon!
Would it be possible to throw a more logically error such as, "XPath does not resolve to @id"
But something which makes sense, rather than my retarded english. /L (:
is working on a reply...