Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Modify tip /help text

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229322 by polbarbe95
Modify tip /help text was created by polbarbe95
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.17
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Fruity
==================
Good morning, 

I have been trying to change the tip / help text in my survey but it is not possible to modify at all from what I have seen. I opted to hide the tip and then fill in the question validation equation and then the validation tip. However, I do not want the question to be compulsory, only to change the help message. 

For instance I would like to change the "check all that apply" option to "Please select all that apply". 

Is there any way to circumvent this issue? 

Best, 

Pol 

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 10 months ago #229326 by tammo
Replied by tammo on topic Modify tip /help text
Hide the tip, use the help text. I do not see a roadblock...


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: polbarbe95

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229327 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
True, easy peasy. Thank you Tammo!!

Best

Pol

Please Log in to join the conversation.

More
1 year 10 months ago - 1 year 10 months ago #229330 by Matadeleo
Replied by Matadeleo on topic Modify tip /help text
You can always use JavaScript to modify the text at runtime - obviously this would be a little bit annoying to do for every question

Adding this to the source of the question text or help text could be what you are looking for
Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
      $('#vmsg_{QID}_default').text("Make the tip say whatever you like");
  });
</script>

If you wanted to keep the favicons to make it look more similar to the default option you could use something like this:
Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
      $('#vmsg_{QID}_default').html('<span class="fa fa-exclamation-circle" aria-hidden="true"></span> Make the tip say whatever you like');
  });
</script>
Last edit: 1 year 10 months ago by Matadeleo.
The following user(s) said Thank You: polbarbe95

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229333 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
Oh that's fantastic Matadeleo. It is precisely what I was looking for. Thank you so much. 

All the very best, 

Pol 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #229335 by holch
Replied by holch on topic Modify tip /help text
And: You can change this string in the language files as well. But this might be overwritten by updates. You could even propose this change of wording for the official translation in Limesurvey, but I don't really see the need regarding "check all that apply" vs. "Please select all that apply", so it might be rejected.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229341 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
That is indeed really good to know. Thank you!

All the best, 

Pol 

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229705 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
Good afternoon Matadeleo!

I have been trying your code and it has been working perfectly for Multiple choice and Radio (list) questions. However, the code does not work in other question settings such as array. Do you know why that might be the case? 

All the best, 

Pol

Please Log in to join the conversation.

More
1 year 10 months ago - 1 year 10 months ago #229709 by Matadeleo
Replied by Matadeleo on topic Modify tip /help text
Hi Pol, this is probably because the example I gave you targeted the help text in an overly specific way, you should be able to use the below on almost any question type:


Code:
<script type="text/javascript" charset="utf-8">
    $(document).on('ready pjax:scriptcomplete',function(){
        $('#vmsg_{QID}').text("Make the tip say whatever you like");
    });
</script>
Last edit: 1 year 10 months ago by Matadeleo. Reason: Formatting code

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229713 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
Thanks for your rapid response Matadaleo. 

I have just tried out your code and it is not working (at least for me), I am using array in this case. I attach you the question in case it helps

 

Please Log in to join the conversation.

More
1 year 10 months ago - 1 year 10 months ago #229714 by Matadeleo
Replied by Matadeleo on topic Modify tip /help text
Hi Pol - the code I provided replaces the "tip" text and it looks like you are not using any setting which enables this currently on that question.

If you were to go into Logic -> Minimum answers = 1, then you would see this code replacing the default text for the help message

Are you looking to simply add this text at all times, or replace another bit of text in the survey?
Last edit: 1 year 10 months ago by Matadeleo.

Please Log in to join the conversation.

  • polbarbe95
  • polbarbe95's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #229719 by polbarbe95
Replied by polbarbe95 on topic Modify tip /help text
Thank you Matadaleo!

The code worked, as you said, by simply setting the minimum answers to one. However, if possible, I would like this text to appear all the time, as it is right now, but without setting a minimum number of answers, so the respondents can skip if they prefer to do so. The tip text would be something like "please rate each item from the list below".

 

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose