Question coding for Ten-Item Personality Inventory (TIPI) | XM Community
Skip to main content
Hi,



I'm trying to create a question/set of questions in line with the TIPI scale here: !



I think I need to use constant sum (without the row sum) but is there a way of making the sum number appear before the text?



Thank you

Hi there, if you still need, this can be put in place by creating a Constant Sum question and setting it to Alignment = Horizontal. Then, head over to the Style section of the Look & Feel and add the below CSS:
.Skin .CS .SumInput, .Skin .CS .SumTotal {
width: 50px !important;
margin: 0px !important;
display: inline-block !important;
}

li.Selection {
float: left !important;
}

li:nth-child(n){
clear: left;
}
CS_leftbox.pngYou can add Custom validation to the question to ensure that each input is between 1 and 7. Alternatively, you can add the below to the OnReady of the question's JavaScript to change the input fields to numbers and set a min/max:
jQuery("#"+this.questionId+" .InputText").attr({'type':'number','min':'1','max':'7'});
CS_leftbox2.png


Leave a Reply