Welcome to the LimeSurvey Community Forum

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

Changing Text String

  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago - 3 years 6 months ago #206089 by ninaviz
Changing Text String was created by ninaviz
Hello! I have combed the docs and queried the forums here, and cannot find an answer—so am hoping there is a simple/easy one, for my inquiry.

I want to change the default text for "No Answer," to instead read "Prefer to not answer." Is that possible to do through the WebUI, or do I have to edit files at the server level?

I'd also love to somehow execute a global change to the "Other:" string to "Something else:," but am ok doing the per-question workaround in the UI, right now.

I'm using an instance running 3.23.6+200929. I am also only self-hosting, to meet my user's expectations for security (evil maid avoidance). Not to avoid giving money to Lime GmbH.

Thank you!
Last edit: 3 years 6 months ago by ninaviz.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206090 by tpartner
Replied by tpartner on topic Changing Text String
What question type(s) are you referring to?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206091 by ninaviz
Replied by ninaviz on topic Changing Text String
As I'm aware, the "No Answer" default is only available for Radio Buttons.

I turned it on as a global setting for all question types, and for that to by-default be selected. It does not show-up on my checkbox question types. I'd love for it to show-up there, too, tbh!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206093 by tpartner
Replied by tpartner on topic Changing Text String
It is also used in arrays. What question type(s) are you referring to?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206095 by ninaviz
Replied by ninaviz on topic Changing Text String
Like I said: I would LOVE for "No Answer" to be an option for literally all question types. It is currently not.

I've turned-on the "Show 'no answer' option for non-mandatory questions:" switch in Global Settings > Presentation. That only offers "No Answer" as a default-selected option on Radio Buttons. A sample version of our survey, is here: survey.qubes-os.org/index.php?r=survey/index&sid=681812&lang=en

We're using radio buttons, checkbox multiple-choice, and ranking, as answer-types.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206096 by tpartner
Replied by tpartner on topic Changing Text String
Can you attach a small sample survey (.lss file) containing only those questions?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206097 by ninaviz
Replied by ninaviz on topic Changing Text String
Slightly off-topic... I have no idea what "an array" is. That syntax is not a common use of language that researchers use, for shaping surveys. Developers, yes. Researchers w/o a background in coding, no.

@cdorin When googling what an array means, I found this article. It is extraordinarily helpful, and an example of the direction LimeSurvey's documentation could benefit from moving towards. Sharing, as FYI: support.mysurvey.solutions/syntax-guide/...ti-select-questions/
The topic has been locked.
  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206098 by ninaviz
Replied by ninaviz on topic Changing Text String
Here you go! TY for taking the time to help me with this!! :)

File Attachment:

File Name: limesurvey...1812.lss
File Size:89 KB
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206099 by tpartner
Replied by tpartner on topic Changing Text String
List-radio questions:

If you are only dealing with one language, extend your theme and add this to the end of your custom.js file:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
 
  $('.list-radio .no-answer-item, .list-radio .no-anwser-item label').text('Prefer to not answer');
 
});


Multiple-choice and ranking questions:

You will need to manually insert the "No answer" options.

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: ninaviz
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #206100 by tpartner
Replied by tpartner on topic Changing Text String

ninaviz wrote: Slightly off-topic... I have no idea what "an array" is. That syntax is not a common use of language that researchers use, for shaping surveys. Developers, yes. Researchers w/o a background in coding, no.

From the manual:



manual.limesurvey.org/Question_types

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 6 months ago by tpartner.
The topic has been locked.
  • ninaviz
  • ninaviz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206101 by ninaviz
Replied by ninaviz on topic Changing Text String
Huzzah! You rule Tony, thank you so much!!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206102 by tpartner
Replied by tpartner on topic Changing Text String
Watched "The Great" did we? :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose