Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to edit the template of question components

  • khaled
  • khaled's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #152272 by khaled
I am trying to create a custom template, part of which I am trying to edit the template of questions components (not question.pstpl) such as QUESTION_HELP, QUESTION_VALID_MESSAGE, and most importantly ANSWER (edit the view of radio list, checkboxes and so). However I can't find any template file regarding those.
Any ideas? as the other option would be using javascript and css to override such options.
The topic has been locked.
More
7 years 2 weeks ago #152273 by jelo

khaled wrote: However I can't find any template file regarding those.
Any ideas? as the other option would be using javascript and css to override such options.

There are no templates for these variables. CSS and Javascript are the most common ways to manipulate the output to your own needs. Modifiying PHP code is only suitable if no further updates are an option (not recommended). LS 3.0 will offering some improvements in templates and question styling. But personally I don't expect anything for productive use in 2017.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • khaled
  • khaled's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #152275 by khaled
Appreciate your timely response. looking forward to the new updates then.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 weeks ago #152277 by tpartner
As of version 2.5, you can create template-specific custom views for questions and some of their incorporated elements - manual.limesurvey.org/The_template_edito...ws_.28version_2.5.29

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 2 weeks ago #152278 by jelo
Thanks Tony, I always forget about that feature. Are you using that approach in productive surveys?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • khaled
  • khaled's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago - 7 years 2 weeks ago #152279 by khaled
Ah! you're a life saver! Would've hated fixing the view in the client-side!
Last edit: 7 years 2 weeks ago by khaled.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 weeks ago #152280 by tpartner

jelo wrote: Thanks Tony, I always forget about that feature. Are you using that approach in productive surveys?

Yeah, I quite often remove a lot of the Bootstrap wrapping elements among other client-specific modifications.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose