Welcome, Guest
Username: Password: Remember me

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

Change "please choose" from dropdown dinamically (no remote server access) 1 year 3 months ago #91403

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • 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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 3 months ago #91404

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • 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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91415

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5854
  • Thank you received: 716
  • Karma: 222
Hello:

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

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

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91447

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

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91461

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91504

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • 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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91509

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91529

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • 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.

Re: Change "please choose" from dropdown dinamically (no remote server access) 1 year 2 months ago #91531

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
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.
Moderators: ITEd
Time to create page: 0.139 seconds
Donation Image