Skip to content

Show prompt in survey-text in two lines #1218

Answered by jodeleeuw
xliu382 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xliu382,

You can use a function-as-parameter to achieve this. Unfortunately we haven't yet implemented support for making the individual parts of the questions array functions, so you have to do it at the level of the questions parameter.

questions: function(){
	return [
		{prompt: jsPsych.timelineVariable('q', true) + "<br><br>" + jsPsych.timelineVariable('a', true), columns: 6, required: true}
	]
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xliu382
Comment options

Answer selected by xliu382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants