Millisecond Forums

Add custom parameter to web experiment.

https://forums.millisecond.com/Topic30969.aspx

By maximilian.kraus@fhws.de - 3/4/2021

Our experiment is quite large and we would like to give users the option to only work on specific subsections at a time.
Is there any way we can add a custom parameter to our experiment url, so that we can check its value inside the inquisit script and only show appropriate blocks or trials?
By Dave - 3/4/2021

Our experiment is quite large and we would like to give users the option to only work on specific subsections at a time.
Is there any way we can add a custom parameter to our experiment url, so that we can check its value inside the inquisit script and only show appropriate blocks or trials?

You can pass in at most two pieces of information to a script via URL parameters:
- The subjectid (accessible via the script.subjectid property), and
- the groupid (accessible via the script.groupid property).

If your experiment does not need the groupid for e.g. condition assignment, you can use it for your purposes.
By maximilian.kraus@fhws.de - 3/5/2021

Thank you for the quick reply. We can use the groupid in our case :).

I understand you are an admin. May I suggest you forward a feature request to have web experiments accept custom url parameters that are assigned to matching <parameters> in the script? It would certainly enable a lot of configuration use cases for us and other users!

Thank you.
By Dave - 3/5/2021

Thank you for the quick reply. We can use the groupid in our case :).

I understand you are an admin. May I suggest you forward a feature request to have web experiments accept custom url parameters that are assigned to matching <parameters> in the script? It would certainly enable a lot of configuration use cases for us and other users!

Thank you.

I will be happy to do that.
By maximilian.kraus@fhws.de - 3/10/2021

I need your assistance one more time, I'm afraid.

How do I go about playing a different set of blocks depending on groupid?
I cant get it to work using expt / groupassignment, etc.

Can you be so kind and give an example?
By Dave - 3/10/2021

I need your assistance one more time, I'm afraid.

How do I go about playing a different set of blocks depending on groupid?
I cant get it to work using expt / groupassignment, etc.

Can you be so kind and give an example?

You'll have to work with /skip attributes at the <block>-level, i.e. skip a given set of blocks if the group id is not what you want it to be for this set of blocks.