Bold current question or add a check mark when answered

More
4 years 6 months ago #95794 by kateibe
kateibe replied the topic: Bold current question or add a check mark when answered
Hello,

My organization recently upgraded to Limesurvey 2.0 and now the color coding does not work...Could you please provide code that would work for LS 2.0. Thank you so much for your help! I had it all working and then we upgraded!! :(

Kat

Please Log in to join the conversation.

More
4 years 6 months ago #95795 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
All of the code prior to 3 posts ago was developed for LimeSurvey 2. Go back to using that code.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: kateibe

Please Log in to join the conversation.

More
4 years 6 months ago #95796 by kateibe
kateibe replied the topic: Bold current question or add a check mark when answered
Hi Tony,

As always, thank you so much for your prompt response. I tried using the the code from the original posts but it is not working. :( Here is a test survey using the same template.

limesurvey.Partners.org/limesurvey/index.php/438423/lang-en

Thank you so much for all your help!

Regards,

Kat

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #95799 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
That's because jQuery isn't being loaded. The loading of JavaScript is handled differently in 2.0.

In startpage.pstpl, replace this:
<script type="text/javascript" src="{TEMPLATEURL}template.js"></script>

With this:
<!-- The following line includes jquery.js, jquery-ui.js, survey_runtime.js , template.js and needed specific js file for survey -->
{TEMPLATEJS}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 years 6 months ago by tpartner.
The following user(s) said Thank You: kateibe

Please Log in to join the conversation.

More
4 years 6 months ago #95811 by kateibe
kateibe replied the topic: Bold current question or add a check mark when answered
Hi Tony!

Thank you so much for figuring this out! I would have never been able to! Thank you!! :woohoo:

with gratitude,

Kat

Please Log in to join the conversation.

More
3 years 8 months ago #105829 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hello Tony,

It's Kat again (I'm unable to access my old account). Is there a way to also make the "ranking" type questions change colors when any item is moved? I've tried to figure it out but to no avail. Thank you so much!

Kat

Please Log in to join the conversation.

More
3 years 8 months ago #105832 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
Hi Kat,

Add something like this to the end of templates.css.

.dragDropTable ul.dragDropChoiceList li.ui-sortable-helper, 
.dragDropTable ol.dragDropRankList li.ui-sortable-helper {
	background: pink;
	font-weight: bold;
	color: #CC0000;
}

.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
3 years 8 months ago #105836 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Thank you for your prompt response Tony! I added the text as recommend but I may be missing something because it didn't work.

Here is a sample survey:
limesurvey.Partners.org/limesurvey/index.php/864121/lang-en

Thank you!

Kat

Please Log in to join the conversation.

More
3 years 8 months ago #105839 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
Please clear your cache and refresh.

Here is what I see when dragging:


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
3 years 8 months ago #105874 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony,

Thank you again for your response! I see that it does that in Internet explorer but not in Chrome (although that's not the real issue). What I'm really trying to do is to get the ranking questions to change color when answered, please see my example of the other question types here:

limesurvey.Partners.org/limesurvey/index.php/864121/lang-en

Thank you so much!

Kat

Please Log in to join the conversation.

More
3 years 8 months ago #105875 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
Oh, I get it now.

Can you attach that sample survey and template?


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
3 years 8 months ago #105883 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony,

Please see attached. Thank you!

Kat
Attachments:

Please Log in to join the conversation.

More
3 years 8 months ago #105886 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
And you template please? You can export it from the template manager.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
3 years 8 months ago #105889 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony,

Should I do the Template.js or template-rtl.css? Thank you!

Kat

Please Log in to join the conversation.

More
3 years 8 months ago #105890 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony,

I'm attaching both below. Thank you!

Kat :)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!