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

More
2 years 4 months ago #262509 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

Please Log in to join the conversation.

More
2 years 4 months ago #262564 by Joffm
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
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.

More
2 years 4 months ago #262615 by saifshaikh
Thanks Joffm, that worked perfectly!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose