Increase size of the textbox for Constant Sum questions | XM Community
Skip to main content
Solved

Increase size of the textbox for Constant Sum questions

  • April 1, 2019
  • 1 reply
  • 78 views

I'd like to increase the size of the textboxes for a Constant Sum question. I've consulted the responses on the forum, but I've been unsuccessful. I found a very relevant link from 12/2017 that looks relevant, using the following code: <style> .Skin .CS .SumInput input.InputText, .Skin .CS .SumTotal input, .Skin .CS input.SumInput { width: 40px; } </style> However, when I insert it into the Add Javascript:, I get an error message that says: Invalid JavaScript! You cannot save until you fix all errors: Unexpected token < I would think it's pretty straightforward using the Add Javascript, but I'm not a programmer; just need a little flexibility in the width of that textbox so that more than 4 or 5 digits are viewable. Any assistance is appreciated.

Best answer by YASH1T

@RhodesPsyc , the code you shared is CSS and not javaScript. So you need to put this code in Look and Feel-->Advanced/General-->array/style-->CSS ! !

1 reply

YASH1T
QPN Level 2 ●●
Forum|alt.badge.img+6
  • QPN Level 2 ●●
  • Answer
  • April 2, 2019
@RhodesPsyc , the code you shared is CSS and not javaScript. So you need to put this code in Look and Feel-->Advanced/General-->array/style-->CSS ! !