- Posts: 14
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- explanatory heading in array subquestion
explanatory heading in array subquestion
3 years 9 months ago #110514
by barbacot
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 6742
- Karma: 601
- Thank you received: 1811
3 years 9 months ago - 3 years 9 months ago #110614
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
tpartner replied the topic: explanatory heading in array subquestion
Set up your survey to use JavaScript
and add something like this to the source of the question:
Then you can style it with something like this at the end of template.css:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var newText = 'This is the sub-question header';
$('#question{QID} table.subquestions-list thead td:first').addClass('sub-question-header').text(newText);
});
</script>
Then you can style it with something like this at the end of template.css:
td.sub-question-header {
font-size: 11px;
padding: 4px 6px;
color: red;
text-align: right;
}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 9 months ago by tpartner.
The following user(s) said Thank You: szylkrecik
Please Log in or Create an account to join the conversation.