Skip to content

Query Parameters not supported by JATOS #53

Description

@bernhardbirkner

The app.js file calls the run entry point function only with jatos.studyJsonInput. It would be great if JATOS would also pass query parameters to the run function.

E.g.

  ...
  jatos.onLoad(async () => {
    // Get query params
    const queryParams = jatos.urlQueryParameters
    // Run the jsPsych Experiment
    const jsPsych = await run({
      environment: "jatos",
      input: jatos.studyJsonInput,
      queryParams: queryParams,
      ...options,
    });

    if (jsPsych) {
      jatos.submitResultData(jsPsych.data.get().json(), jatos.startNextComponent);
    }
  });
 ...

PS: I could make a PR for this change, but don't yet have permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions