Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

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

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91403

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91404

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91415

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7450
  • Thank you received: 1018
  • Karma: 295
Hello:

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

See Expression Manager documentation.
The administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91447

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
perfect. Thank u so much.
The administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91461

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5705
  • Thank you received: 331
  • Karma: 255
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)limesurvey.org'"
The administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91504

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91509

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5705
  • Thank you received: 331
  • Karma: 255
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)limesurvey.org'"
The administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91529

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 2 years 6 months ago #91531

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5705
  • Thank you received: 331
  • Karma: 255
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)limesurvey.org'"
The administrator has disabled public write access.

Change "please choose" from dropdown dinamically (no remote server access) 3 months 3 weeks ago #118884

  • boriginal
  • boriginal's Avatar
  • Offline
  • Junior Lime
  • Posts: 30
  • Karma: 0
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 administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.169 seconds