Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
RE: custom fields from URL?
custom fields from URL?
Post Reply
Like
48
custom fields from URL?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
tcarpenter
tcarpenter
posted 6 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 2,
Visits: 8
Hello,
I'm curious if it's possible to add custom data fields from url? For example, if someone was going to take the same task twice, could I do something with the URL such as adding an "order" variable (coded 1 or 2) that could be saved with the data somehow?
https://research.millisecond.com/myaccount/myscript.web?subjectid=1&groupid=1234&order=1
Thanks
Reply
Like
48
Dave
Dave
posted 6 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
+
x
tcarpenter - Wednesday, July 18, 2018
Hello,
I'm curious if it's possible to add custom data fields from url? For example, if someone was going to take the same task twice, could I do something with the URL such as adding an "order" variable (coded 1 or 2) that could be saved with the data somehow?
https://research.millisecond.com/myaccount/myscript.web?subjectid=1&groupid=1234&order=1
Thanks
The script can generally only take in at most two query parameters and store them in its data file: one for the subject ID, another one for the group ID. The script would not have any awareness of additional query parameters beyond that. However,
(1) The full URL, including all query parameters (here: order in addition to subjectid and groupid) should be captured in the participant logs. You should be able to download the logs and merge the relevant information with the script's data file during data preparation using your preferred data analysis application.
(2) All incoming query parameters would also be preserved when you redirect to some other site after the experiment. If you were to redirect to a site under your control, you could also capture the information of interest there and then merge that with the remaining data.
Reply
Like
50
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
48
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search