Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Set a default question type for new questions in a survey

Set a default question type for new questions in a survey 2 years 10 months ago #103415

  • lordzoster
  • lordzoster's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Thank you received: 2
  • Karma: 0
Hallo
is there any way to default select a question type in the "question types list" for every new question in a survey?
We are going to register hundreds of questions, all of the same type (List - radio)

Thanks in advance
The administrator has disabled public write access.

Set a default question type for new questions in a survey 2 years 10 months ago #103479

  • fransmarcelissen
  • fransmarcelissen's Avatar
  • Offline
  • Gold Lime
  • Posts: 241
  • Thank you received: 53
  • Karma: 13
As far as I know this is not possible. But a way to do this is copying the question XXX times, so that you only have to change the name and the text of the question.
Frans
The administrator has disabled public write access.

Set a default question type for new questions in a survey 2 years 10 months ago #103490

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1894
  • Thank you received: 467
  • Karma: 118
Hi,

in the file: application/controllers/admin/question.php
(admin/questionhandling.php for older versions)

search (around line 765) :
$eqrow['type'] = 'T';
and change for
$eqrow['type'] = 'L';

/!\ Remember and check your changes after any LS major update

=> For people needing other question types:
Array
Type A: Array (5 point choice)
Type B: Array (10 point choice)
Type C: Array (Yes/No/Uncertain)
Type E: Array (Increase/Same/Decrease)
Type H: Array by column
Type : - Array dual scale
Array (Numbers)
Array (Text)
Mask questions
Type D: Date
File upload
Type G: Gender
Language switch
Type N: Numerical input
Multiple numerical input
Type R: Ranking
Type X: Text display
Type Y: Yes/No
Equation
Multiple choice questions
Type M: Multiple choice
Multiple choice with comments
Single choice questions
Type 5: 5 point choice
Type !: List (Dropdown)
Type L: List (Radio)
Type O: List with comment
Text questions
Type S: Short free text
Type T: Long free text
Type U: Huge free text
Type Q: Multiple short text
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The administrator has disabled public write access.
Time to create page: 0.204 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form