Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
Pass value from script to url
Pass value from script to url
Post Reply
Like
34
Pass value from script to url
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
francescodf
francescodf
posted 8 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 7,
Visits: 170
Hi there,
Is it possible to pass a value of the script as an output parameter via url?
For example I would like to return a parameter d of the iat test at the end of the script
http://example.com?dparam=XXXX
Is it also possible to pass these values as POST instead of GET?
Thank you
Reply
Like
34
Dave
Dave
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
+
x
francescodf - Wednesday, December 20, 2017
Hi there,
Is it possible to pass a value of the script as an output parameter via url?
For example I would like to return a parameter d of the iat test at the end of the script
http://example.com?dparam=XXXX
Is it also possible to pass these values as POST instead of GET?
Thank you
You can set the URL a web experiment redirects to in a script via the defaults.finishpage propery. That URL can include query parameters, i.e. you'd do something like this:
<expt>
/ onexptend = [defaults.finishpage = text.redirect_to.item(1);]
...
</expt>
<text redirect_to>
/ items = ("
http://example.com?subjectid=<%script.subjectid%>&dparam=<%expressions.d%>")
</text>
Reply
Like
43
francescodf
francescodf
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 7,
Visits: 170
+
x
Dave - Wednesday, December 20, 2017
+
x
francescodf - Wednesday, December 20, 2017
Hi there,
Is it possible to pass a value of the script as an output parameter via url?
For example I would like to return a parameter d of the iat test at the end of the script
http://example.com?dparam=XXXX
Is it also possible to pass these values as POST instead of GET?
Thank you
You can set the URL a web experiment redirects to in a script via the defaults.finishpage propery. That URL can include query parameters, i.e. you'd do something like this:
<expt>
/ onexptend = [defaults.finishpage = text.redirect_to.item(1);]
...
</expt>
<text redirect_to>
/ items = ("
http://example.com?subjectid=<%script.subjectid%>&dparam=<%expressions.d%>")
</text>
Thanks Dave :)
Reply
Like
37
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
34
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search