NullReference error when submitting a form from a page with querystrings
Using magic strings, I prepopulate some dropdown fields in my form from the querystring ([@parameter]). This works fine.
However, it seems that my forms get stuck whenever a querystring is present in the url.
Tested the same form from a page with and without the querystrings. Sure enough, the one without querystrings went through just fine.
I figured out that this only happens when you have querystring paramaters that match any field alias in the form. That makes sense, as I am sending data through both the form and the querystring. If I have any of these parameters have the same name, it wouldn't know which one I needed, although the querystring parameters are only necessary for form rendering (to prepopulate fields) and not for data submission.
Oh well. It's an easy fix. Just make sure you don't send querystring paramaters to the form that have the same name as a field alias in the form.
NullReference error when submitting a form from a page with querystrings
Using magic strings, I prepopulate some dropdown fields in my form from the querystring ([@parameter]). This works fine.
However, it seems that my forms get stuck whenever a querystring is present in the url. Tested the same form from a page with and without the querystrings. Sure enough, the one without querystrings went through just fine.
Anyone know what's going on here?
Umbraco version 7.10.4 Umbraco Forms: "7.0.3"
I figured out that this only happens when you have querystring paramaters that match any field alias in the form. That makes sense, as I am sending data through both the form and the querystring. If I have any of these parameters have the same name, it wouldn't know which one I needed, although the querystring parameters are only necessary for form rendering (to prepopulate fields) and not for data submission.
Oh well. It's an easy fix. Just make sure you don't send querystring paramaters to the form that have the same name as a field alias in the form.
is working on a reply...