Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Numeric question

Hi,
I would like to increase the size of the box you enter the number in for a numeric question. Someone who knows how?
asked Sep 4, 2020 by Linebje (420 points)

2 Answers

0 votes
Hi Linebje,

Please copy below css in header 1 of the numeric question. You can change width (100px) in the code as per your requirement.

<style>
.numeric_input {
    width:100px !important;
}
</style>


Regards,
Rahul Mittal
answered Sep 4, 2020 by Rahul Mittal Gold (11,860 points)
Great thanks :)
0 votes
There are two options I know of.

1/ In your numeric question, click Advanced | Numeric Settings and enter the width there. Hit OK to save.

2/ Insert the following CSS script in to your footer ...
<style>
#[% QuestionName() %]_div .numeric_input {
    width: 200px;
}
</style>

Change the 200px to your desired width.

Note: the above CSS script is something I have used in the past courtesy of Zachary Anderson (he provides wonderful support on this forum on a daily basis).
answered Sep 4, 2020 by Paul Moon Platinum (98,670 points)
Great thanks :)
...