Edit the text box width in open-ended questions

Compatibility:IdSurvey 5IdSurvey 6

This script allows you to edit the width of a text box in a simple open-ended question.
In this sample javascript, the width is set to 400px. To edit the preset value, you will need to replace “400” (in red in the example below) with the preferred value.

Instructions

Copy the script in the “Client script” box that you find in the gearwheel button of the page containing the question.

<style>
      input{
        width:400px !important;
        margin-top: 10px !important;
      }
  </style>

Reduce_Text_Box

If the “text area” option is enabled in the open-ended question, the script will be slightly different. You will need to replace input (in green in the example above) with textarea (in green in the example below).

<style>
      textarea{
        width:400px !important;
        margin-top: 10px !important;
      }
  </style>

 

Leave A Comment?