userId

Builds a trial with set Id message and user Id input.
Source:
Parameters:
Name Type Description
jsPsych Object The instance of the jspsych passed as an object.
config Object The configuration object for USE_PHOTODIODE, USE_EEG, USE_ELECTRON and USE_MTURK flags.
Name Type Description
USE_PHOTODIODE boolean USE_PHOTODIODE flag
USE_EEG boolean USE_EEG flag
USE_ELECTRON boolean USE_ELECTRON flag
USE_MTURK boolean USE_MTURK flag
options Object
Name Type Description
duration number trial duration in milliseconds, when config.USE_MTURK is set to true. (default: 1000)
stimulus string Onscreen stimulus in HTML to be shown in the trial. If the stimulus is not provided, message should be provided as a string. (default: "")
setIdMessage string Onscreen text for setting user id or for the input box to enter user id. (default: "")
defaultId string The user id to show when requesting a user ID, when config.USE_MTURK is set to false.(default: "")