- Posts: 30
- Thank you received: 0
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)
- Gabriela
- Topic Author
- Offline
- Banned
Less
More
11 years 3 months ago #91403
by Gabriela
Change "please choose" from dropdown dinamically (no remote server access) was created 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
thanks in advance
The topic has been locked.
- Gabriela
- Topic Author
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91404
by Gabriela
Replied by Gabriela on topic Change "please choose" from dropdown dinamically (no remote server access)
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
$('#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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13675
- Thank you received: 2496
11 years 3 months ago #91415
by DenisChenu
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.
Replied by DenisChenu on topic Change "please choose" from dropdown dinamically (no remote server access)
Hello:
$('#question{QCODE.qid} option[value=""]').text('seleccione');
See Expression Manager documentation.
$('#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.
- Gabriela
- Topic Author
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91447
by Gabriela
Replied by Gabriela on topic Change "please choose" from dropdown dinamically (no remote server access)
perfect. Thank u so much.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
11 years 3 months ago #91461
by Mazi
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
Replied by Mazi on topic Change "please choose" from dropdown dinamically (no remote server access)
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.
- Gabriela
- Topic Author
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91504
by Gabriela
Replied by Gabriela on topic Change "please choose" from dropdown dinamically (no remote server access)
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.
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
- Offline
- Official LimeSurvey Partner
11 years 3 months ago #91509
by Mazi
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
Replied by Mazi on topic Change "please choose" from dropdown dinamically (no remote server access)
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.
- Gabriela
- Topic Author
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91529
by Gabriela
Replied by Gabriela on topic Change "please choose" from dropdown dinamically (no remote server access)
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.
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
- Offline
- Official LimeSurvey Partner
11 years 3 months ago #91531
by Mazi
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
Replied by Mazi on topic Change "please choose" from dropdown dinamically (no remote server access)
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.
- Ryuniri_44052
- Offline
- Banned
Less
More
- Posts: 40
- Thank you received: 0
9 years 1 month ago #118884
by Ryuniri_44052
Replied by Ryuniri_44052 on topic Change "please choose" from dropdown dinamically (no remote server access)
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.?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
9 years 1 month ago #118889
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change "please choose" from dropdown dinamically (no remote server access)
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.