This project is read-only.

Retreiving querystring in Rule

Topics: Customizing Orchard
Mar 3, 2013 at 9:05 PM

I have successfully created a custom form with input values like name, email, phone and so on.
On submission I collect the content items and email them with the help of a rule.
Like this:
<p>Name: {Content.Fields.Intresseanmalan.Namn} </p> <p>Email: {Content.Fields.Intresseanmalan.Email} </p> This works great!

My URL to the form is ......./myform?id=2
I try to add the querystring item id with {Request.QueryString:id}
Like this: <p>ID: {Request.QueryString:id} </p>

But the id querystring value is blank. Nothing is returned.

What am I doing wrong?
Or what shall I do to get hold of the querystring and pass it on with my other custom form values?
Mar 3, 2013 at 11:46 PM
Hard to tell. Perhaps set a breakpoint in the token implementation of Request.QueryString and see what happens there?