If there is a form that posts to a page with a Contour form on it, I thought it would be possible to get the value of a check box on that form saved in a hidden field in contour.
I used a hidden field and set the default value using the bracket syntax to {@ordered-items} Is this how it should appear? What I am getting in the entries section is just that text "{@ordered-items}" not the value of the checkboxes.
getting posted form value
If there is a form that posts to a page with a Contour form on it, I thought it would be possible to get the value of a check box on that form saved in a hidden field in contour.
I used a hidden field and set the default value using the bracket syntax to {@ordered-items} Is this how it should appear? What I am getting in the entries section is just that text "{@ordered-items}" not the value of the checkboxes.
Hoping pictures will help explain what I mean:
Comment author was deleted
Almost you need to use the syntax [@ordered-items]
thanks Tim
that still places [@ordered-items] in the product column - which is a shame
this site is using Umbraco v6.1.6 & Contour 3.0.21 btw
Comment author was deleted
So it still isn't replacing the [@ordered-items] text? Hmm that should be the correct syntax.
What happens if you append ?ordered-items=test to the url?
Comment author was deleted
Just did the following test on latest v of Contour and that did the trick
have a form on my homepage
and on the test page i have a contour form with a field where the default value is set to [@test]
Could it be because it is multiple checkboxes?
I was hoping for something like "tickedvalue1, tickedvalue3, tickedvalue4"
as you'd get from a request.form["checkboxName"]
there are really problematic issues with upgrading this site to latest version
is it the case that this doesn't work in the version I'm using but it would if we went through the update pain?
btw yes if I append ?ordered-items=test to the url requesting the contour form I do still get the [@ordered-items] in the value for the hidden field
Comment author was deleted
Hmm then it must be an issue with that version of Contour, upgrading to the latest version should fix it, what version of Umbraco are you on?
this site is using Umbraco v6.1.6 & Contour 3.0.21
Comment author was deleted
You should be able to upgrade Contour to the latest just fine, no need to upgrade Umbraco, upgrading Contour is just a matter of replacing some file.
Upgrade instructions available here https://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade
thanks Tim
you wouldn't believe how paranoid this particular host is for this customer - arrangements for access are byzantine
just tried one experiment and changed the name of the input
and then it works!
odd
(it struck me there was something a little bit reserved words about ordered-items)
btw I inherited and am fixing this sad and broken site
Comment author was deleted
Ah great, glad it's working now!
well I've found something odd
it seems to fail whenever there is a hyphen in the input name
i'll test this on the latest version and raise an issue if that is still the case
Comment author was deleted
Thanks!
is working on a reply...