- Posts: 23
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
different prefix/suffix for each sub question in a Array Dual Scale Question
- saifshaikh
- Topic Author
- Offline
- Junior Member
Less
More
3 weeks 1 day ago #262509
by saifshaikh
different prefix/suffix for each sub question in a Array Dual Scale Question was created by saifshaikh
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.3
Own server or LimeSurvey hosting: Hosted
Survey theme/template: Fruity ( fruity )
==================
Hello,
I would like to have for different prefix/suffix for Scale 2 for each sub question in a Array Dual Scale Question. is this possible?
Thank you!
Survey attached
Your LimeSurvey version: 6.4.3
Own server or LimeSurvey hosting: Hosted
Survey theme/template: Fruity ( fruity )
==================
Hello,
I would like to have for different prefix/suffix for Scale 2 for each sub question in a Array Dual Scale Question. is this possible?
Thank you!
Survey attached
Attachments:
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13068
- Thank you received: 4023
3 weeks 1 day ago #262564
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic different prefix/suffix for each sub question in a Array Dual Scale Question
Something like this?
Add a dummy prefix and suffix and add this to the question text (in source code mode)
and adapt to your needs
Add a dummy prefix and suffix and add this to the question text (in source code mode)
and adapt to your needs
Code:
<script type="text/javascript"> $(document).on('ready pjax:scriptcomplete',function(){ // Change the prefixes $('#question{QID} .ddprefix:eq(0)').html('Pre1'); $('#question{QID} .ddprefix:eq(1)').html('Pre2'); $('#question{QID} .ddprefix:eq(2)').html('Pre3'); $('#question{QID} .ddprefix:eq(3)').html('Pre4'); $('#question{QID} .ddprefix:eq(4)').html('Pre5'); $('#question{QID} .ddprefix:eq(5)').html('Pre6'); $('#question{QID} .ddprefix:eq(6)').html('Pre7'); $('#question{QID} .ddprefix:eq(7)').html('Pre8'); // Change the suffixes $('#question{QID} .ddsuffix:eq(0)').html('Suff1'); $('#question{QID} .ddsuffix:eq(1)').html('Suff2'); $('#question{QID} .ddsuffix:eq(2)').html('Suff3'); $('#question{QID} .ddsuffix:eq(3)').html('Suff4'); $('#question{QID} .ddsuffix:eq(4)').html('Suff5'); $('#question{QID} .ddsuffix:eq(5)').html('Suff6'); $('#question{QID} .ddsuffix:eq(6)').html('Suff7'); $('#question{QID} .ddsuffix:eq(7)').html('Suff8'); }); </script>
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, saifshaikh
Please Log in to join the conversation.
- saifshaikh
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 0
3 weeks 1 day ago #262615
by saifshaikh
Replied by saifshaikh on topic different prefix/suffix for each sub question in a Array Dual Scale Question
Thanks Joffm, that worked perfectly!
Please Log in to join the conversation.