Welcome, Guest
Username: Password: Remember me

TOPIC: Create a custom question type

Create a custom question type 3 years 10 months ago #55263

  • EricLomm
  • EricLomm's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hello,

Based on the needs of some of our clients, I have a question about what would be the steps I would need to follow if I wanted to create a custom question type.

Specifically, I am looking at the five point choice. We have a client that would for surveys need a six point choice field. I have found the code in the file qanda.php that I would need to modify if I wanted to create a custom question. What other files would I need to modify if I wanted to create a custom question type?

Eric Lommatsch
The administrator has disabled public write access.

Re: Create a custom question type 3 years 10 months ago #55270

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2956
  • Thank you received: 379
  • Karma: 124
Why create a custom question type, when you can use the ones that exist?

If I understood you right, you just need a simple 6 point choice? Have a look at the "array" question type. You can create custom scales. 3 point, 4 point, 6 point, 7 point, 8 point, whatever fits on the screen. OK, it looks slightly different to the 5 point choice, but it should do the job, shouldn't it? Or you take a list radio with 6 items. OK, then the items are lined up vertically, but you could set the column attribute to 6, then they should aline horizontally as well. Just have a look at the link below and browse through the question types. I am quite sure you don't need to create a custom question type. I might be wrong though, but from your describtion...

docs.limesurvey.org/Question+types&struc...tions+for+LimeSurvey
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Last Edit: 3 years 10 months ago by holch.
The administrator has disabled public write access.

Re: Create a custom question type 3 years 10 months ago #55295

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Create a custom question type 3 years 10 months ago #55323

  • EricLomm
  • EricLomm's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
I guess, after looking at these replies, I really don't need to create a custom question type. I was mostly curious about what I would need to look at if I really did decide that I wanted to create a custom question type.
The administrator has disabled public write access.

Re: Create a custom question type 3 years 10 months ago #55361

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.107 seconds
Donation Image