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

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

Please Log in to join the conversation.

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

Please Log in to join the conversation.

More
4 years 2 months 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 (or search sondages pro).

Please Log in to join the conversation.

More
4 years 2 months ago #91447 by Gabriela
perfect. Thank u so much.

Please Log in to join the conversation.

More
4 years 2 months 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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 2 months 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.

Please Log in to join the conversation.

More
4 years 2 months 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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 2 months 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.

Please Log in to join the conversation.

More
4 years 2 months 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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
1 year 11 months ago #118884 by boriginal
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.?

Please Log in to join the conversation.

More
1 year 11 months ago #118889 by tpartner
Place this script in the source of the array:

<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.

Please Log in to join the conversation.