Replies: 3 comments 4 replies
-
Hi @sankalp35, I might be wrong, but I don't think there's an easy way to do this right now. However we are planning to do a major improvement to the survey-* plugins soon (see Issue #1207), and I think this is a good formatting option to provide. So I'll make a note about it on the Issue thread. In the meantime, you can do this by editing the survey-likert plugin, specifically the way that the page HTML is created, which is around these lines: jsPsych/plugins/jspsych-survey-likert.js Lines 126 to 142 in ae332b3 This code loops over the questions, and for each one, adds the question prompt and scale options to the page HTML. Here, instead of using an unordered list element ( |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Another quick question about the styling of this plugin: how do I fix this (see image above). The text appears too close to each other in the options. I tried adding a padding-left to some of this code, but none of it worked html += ".jspsych-survey-likert-statement { display:block; font-size: 16px; padding-top: 40px; margin-bottom:10px; }"+
".jspsych-survey-likert-opts { list-style:none; width:"+w+"; margin:auto; padding:0 0 35px; display:block; font-size: 14px; line-height:1.1em; }"+
".jspsych-survey-likert-opt-label { line-height: 1.1em; color: #444; }"+
".jspsych-survey-likert-opts:before { content: ''; position:relative; top:11px; /*left:9.5%;*/ display:block; background-color:#efefef; height:4px; width:100%; }"+
".jspsych-survey-likert-opts:last-of-type { border-bottom: 0; }"+
".jspsych-survey-likert-opts li { display:inline-block; /*width:19%;*/ text-align:center; vertical-align: top; }"+
".jspsych-survey-likert-opts li input[type=radio] { display:block; position:relative; top:0; left:50%; margin-left:-6px; }"
html += '</style>'; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I wonder if there is any easy way to change the formatting of the survey likert plugin, so that it looks more tabular (see image). It seems like in the current version, participants have to go through many repeat versions of the likert scale, whereas it stays the same for most of my questionnaires.
Beta Was this translation helpful? Give feedback.
All reactions