Welcome to the LimeSurvey Community Forum

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

Change "please choose" from dropdown dinamically (no remote server access)

More
11 years 1 month ago #91403 by Gabriela
Is it possible to change "please choose" from the dropdown in the survey without editing the.po file? have no access to the installed files in the remote server...

thanks in advance
The topic has been locked.
More
11 years 1 month ago #91404 by Gabriela
Did it! :blink:

$('#question1284 option[value=""]').text('seleccione');

is it possible, somehow, to use qcode instead of questionID? (to avoid problems when id changes)
merci
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago #91415 by DenisChenu
Hello:

$('#question{QCODE.qid} option[value=""]').text('seleccione');

See Expression Manager documentation.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
11 years 1 month ago #91447 by Gabriela
perfect. Thank u so much.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 1 month ago #91461 by Mazi
The only alternative solution which comes to my mind is using some lines of JavaScript code.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
11 years 1 month ago #91504 by Gabriela
Thanks Mazi.
Actually, this

$('#question1284 option[value=""]').text('seleccione'); didnt work...

maybe Im using it wrong , do I have to replace anything in the code?

Its an Array question with dropdown option.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 1 month ago #91509 by Mazi
Please post a link to an activated sample survey so we can check the source and also attach the survey here for testing.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
11 years 1 month ago #91529 by Gabriela
sorry, wrong question redaction:

correction..


Thanks Mazi.
Actually, this

$('#question{QCODE.qid} option[value=""]').text('seleccione'); didnt work...

maybe Im using it wrong , do I have to replace anything in the code?

Its an Array question with dropdown option.

thanks,

ps: have no personal server to show you the link, Im working offline now, but I can upload the group. thanks a lot again.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 1 month ago #91531 by Mazi
Please post a screen shot which shows question ID and subquestion/answer IDs of the survey logic file view.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
8 years 11 months ago #118884 by Ryuniri_44052
Hey,

I tried to implement this for a array question with dual scale and dropdown menues. Without success. I think something was wrong.

Can you please show me what the script should look like in total. And is it possible to add something like, use this script on "this question", if the script is implemented in question text of a special question? Instead of addressing the question no.?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #118889 by tpartner
Place this script in the source of the array:

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).ready(function() {
    $('#question{QID} select option[value=""]').text('New Label');
    });  
</script>

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