- Posts: 3
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
7 years 2 weeks ago #152272
by khaled
How to edit the template of question components was created 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.
Any ideas? as the other option would be using javascript and css to override such options.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 2 weeks ago #152273
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic How to edit the template of question components
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.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.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- khaled
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
7 years 2 weeks ago #152275
by khaled
Replied by khaled on topic How to edit the template of question components
Appreciate your timely response. looking forward to the new updates then.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
7 years 2 weeks ago #152277
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to edit the template of question components
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 2 weeks ago #152278
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic How to edit the template of question components
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
7 years 2 weeks ago - 7 years 2 weeks ago #152279
by khaled
Replied by khaled on topic How to edit the template of question components
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
7 years 2 weeks ago #152280
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to edit the template of question components
Yeah, I quite often remove a lot of the Bootstrap wrapping elements among other client-specific modifications.jelo wrote: Thanks Tony, I always forget about that feature. Are you using that approach in productive surveys?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.