How to increase the width of answer box for Short answer type in Quiz

Question:

When my learners have answered "Short answer" questions incorrectly, I always go to the question to see if it was only a typing mistake or if they were completely wrong.
The problem is that the text box displayed when I choose "review attempt" is so small that the longer answers are sometimes hidden.
Is it possible to have the box bigger?

Answer:

To increase answer box for Short answer type of question following file on Sharepoint server should be modified: \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\lms2\quiz\Text.ascx.

Open it in Text editor (e.g Notepad or other) find lines to change setting for answer box when you enter your answer:


<asp:MultiView ID="MultiView" runat="server" OnPreRender="MultiView_PreRender">

    <asp:View ID="View" runat="server">

        <asp:TextBox ID="AnswerTextBox" runat="server" width="200px"></asp:TextBox>
       
To change the width you need to add such parameter and specify value in px as described below in example width is 400px

<asp:MultiView ID="MultiView" runat="server" OnPreRender="MultiView_PreRender">

    <asp:View ID="View" runat="server">

        <asp:TextBox ID="AnswerTextBox" runat="server" width="400px"></asp:TextBox>
       

If you want to change parameter for answer box in results view (when you review your attempt) find following lines at the end of the file


    <asp:View ID="ResultView" runat="server">

        <asp:TextBox ID="ResultAnswerTextBox" Enabled="false" runat="server" width="200px"></asp:TextBox>
       
and also add width parameter with necessary value (e.g. 500 px here)
    <asp:View ID="ResultView" runat="server">

        <asp:TextBox ID="ResultAnswerTextBox" Enabled="false" runat="server" width="500px"></asp:TextBox>
       

Save changes. To apply these changes,please, perform IISRESET on server machine.

We also would like to underline that setting will be applied only to new created quiz attempts.

Please, also take into account that change will be discarded when you update SPLMS version.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.