Hello everyone,

I ask, please, help in the following problem:

1- I am elaborating questions of the type of Calculus and rectangle for the student's answer is very small.

Is there any way to increase the size of the response rectangle?

Thank you very much, Marcelo.

### Calculation type question - Rectangle too small for student's answer

Number of replies: 5### Re: Calculation type question - Rectangle too small for student's answer

Hello Marcelo,

The easiest way to do this is to insert a small JavaScript to adjust the width of the answer boxes. Howerver, the name of these boxes differ from one question type to another. I am not sure what question type you are taking about. Calculus? Could you give a reference to this question type?

The easiest way to do this is to insert a small JavaScript to adjust the width of the answer boxes. Howerver, the name of these boxes differ from one question type to another. I am not sure what question type you are taking about. Calculus? Could you give a reference to this question type?

### Re: Calculation type question - Rectangle too small for student's answer

Hi Professor Dominique,

Thank you very much for your patience in helping me!

It is a "Formulas Question Type" question.

The question has number and unit, for students to answer.

Thank you very much for your patience in helping me!

It is a "Formulas Question Type" question.

The question has number and unit, for students to answer.

The question is attached.

Thank you! Marcelo.

Thank you! Marcelo.

### Re: Calculation type question - Rectangle too small for student's answer

Hi Professor Dominique,

Thank you very much for your help.

It is a "type formula" question.

The question is attached to the other message.

When possible, could you send me an example of this javascript?

Thank you!

Marcelo.

Thank you very much for your help.

It is a "type formula" question.

The question is attached to the other message.

When possible, could you send me an example of this javascript?

Thank you!

Marcelo.

### Re: Calculation type question - Rectangle too small for student's answer

Hello Marcelo,

I'm sorry for the delay in responding to you.

You can simply paste the following code into the HTML of the question text:

I'm sorry for the delay in responding to you.

You can simply paste the following code into the HTML of the question text:

<p>Tanto a alavanca AB quanto a polia mostradas na figura foram soldadas ao eixo BE. Este eixo gira livremente nos apoios C e D. O conjunto está em equilíbrio sob a ação dos esforços mostrados. As distâncias a = {a} mm, b = {b} mm e a força P = {P} N.<br></p> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function(){ // Set the box width for all number-type answers and units on the current page $("input.formulas_number").css("width","80px"); $("input.formulas_unit").css("width","60px"); // Set the box width for the first number-type answer (numbering starts at 0) $("input.formulas_number:eq(0)").css("width","30px"); // Set the box width for the third unit (numbering starts at 0) $("input.formulas_unit:eq(2)").css("width","100px"); }); </script>

### Re: Calculation type question - Rectangle too small for student's answer

Hi professor Dominique,

Thank you very much!

Excellent!

Thank you, Marcelo.

Thank you very much!

Excellent!

Thank you, Marcelo.