Welcome, Guest
Username: Password: Remember me

TOPIC: Plugin for custom question types

Plugin for custom question types 1 year 2 months ago #109812

  • eugene_sue
  • eugene_sue's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hello,

just switched from older LS version to 2.05.
As a matter of fact, I was using several custom question types, which I've added directly into LS source code. The new version of LS has nice thing called plugins, but the documentation which is provided can't answer my questions and help me to add new question types.So my question is following: is it possible to add custom question types via plugins, and where can I find the information concerning the hooks/events I should extend.

Regards!
Last Edit: 1 year 2 months ago by eugene_sue.
The administrator has disabled public write access.

Plugin for custom question types 1 year 2 months ago #109815

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7502
  • Thank you received: 1022
  • Karma: 296
HI,

The Question type and attribute move in plugin in 2.1, not before.
The administrator has disabled public write access.

Plugin for custom question types 1 year 2 months ago #109817

  • eugene_sue
  • eugene_sue's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Wow, and how soon will 2.1 be available?
The administrator has disabled public write access.

Plugin for custom question types 2 months 3 weeks ago #121429

Hi! I am currently having the same issue. The documentation does not help much... did you guys find any source of information of how to create a new type of questions by a plugin?
The administrator has disabled public write access.

Plugin for custom question types 2 months 3 weeks ago #121437

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5725
  • Thank you received: 333
  • Karma: 255
Currently Limesurvey is missing the required events to create new question types as plugins.

We are working on re-working the underlying code to make question types objects and use inheritance and the like within the code to make it easier maintainable, but there is still a lot of work that needs to be done.

What kind of custom question types are you looking for?
Can you upload screenshots?

Mostly, some JS to adjust the layout and use existing question types does the trick.

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.

Plugin for custom question types 2 months 3 weeks ago #121514

Hi! thanks for your response. I am working with the LS remote controll, and basiclly I need that when you add a 'simple line text' with the google maps option, the type displayed in the JSON would be different from 'S'. But with all the logic of a simple line text.

Any ideas?

Thanks!
The administrator has disabled public write access.

Plugin for custom question types 2 months 3 weeks ago #121517

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5725
  • Thank you received: 333
  • Karma: 255
That's something pretty special that can't be done vie the API but requires hacking the source code.

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.

Plugin for custom question types 2 months 3 weeks ago #121536

Well actually, you can forget about the google maps option. It will be fine, if I have a 'Short free line text', but with different Type name. Having two 'Short free line text' but one with different type and description. what do you think?
The administrator has disabled public write access.
Time to create page: 0.155 seconds