Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Parameters not supported by JATOS #53

Open
bernhardbirkner opened this issue Apr 2, 2024 · 0 comments
Open

Query Parameters not supported by JATOS #53

bernhardbirkner opened this issue Apr 2, 2024 · 0 comments

Comments

@bernhardbirkner
Copy link

bernhardbirkner commented Apr 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant