1. Home
  2. Survey
  3. Build Survey
  4. Question types
  5. Matrix
  6. Increase text field length of matrix question incl. one column (professional user)

Increase text field length of matrix question incl. one column (professional user)

Difficulty level: Difficult

What does the functionality do?

Using a script, you can increase the width of the text column in the matrix questions of a survey.

Use case and how to set it up?

Assume you have a one-column matrix question in the survey and have the Text question type configured for the rows. This would be structured roughly as follows:

In order to increase the size of the text fields in the various rows throughout the matrix questions of a survey, you must include a script in the Hint text. The procedure is as follows:

  • Select the required matrix question from the survey to display the corresponding set-up data for this matrix question on the right.
  • Tick the box next to Hint text and click in the input box displayed below.
  • Click on the Rich text editor link at the top right of the input box to reveal the RTE window.
  • Click on the Code View icon in this window.
  • Insert the cursor into the input box and add the following script:

<style type="text/css">
 .rt-container .rt-matrix-container table .rt-mtx-choice-has-open label + .rt-mtx-open-container {
  width: 100%;
 }

</style>

  • Click the Save changes button at the bottom of the window to immediately resize the text fields for all matrix questions, see image below.





Updated on November 16, 2022

Was this article helpful?

Related Articles

Need Support?
Please login to your Survalyzer account and use the "Create Support Request" form.
Login to Survalyzer