Welcome, Guest
Username: Password: Remember me

TOPIC: Tailoring problem

Tailoring problem 2 years 1 month ago #97418

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Hi all,
Ive followed this script&trick
www.limesurvey.org/en/forum/design-issue...st-dropdown-question
to create 2 drop lists linked together. It works perfect.
Now im facing a problem trying to tailor the answer from the second drop down, cause {INSERTANS} or {qcode.shown} is not working due to the selectfilter.js script.
Please, can anyone have a look and see wich can be an alternative solution?
Thank you very much in advance
Gabi

Im attaching survey+selectfilter.js
Attachments:
The administrator has disabled public write access.

Tailoring problem 2 years 1 month ago #97546

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7472
  • Thank you received: 1019
  • Karma: 295
Hello,

Maybe best is to have a "test link".

Denis
The administrator has disabled public write access.

Tailoring problem 2 years 1 month ago #97587

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Hi, thanks for answering.
What is test link?

merci much
The administrator has disabled public write access.

Tailoring problem 2 years 1 month ago #97590

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7472
  • Thank you received: 1019
  • Karma: 295
A link on your system to test the javascript.

A link to one of your survey showing the problem. Just a public survey access..

Denis
The administrator has disabled public write access.

Tailoring problem 2 years 4 weeks ago #97601

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
ahhh, yes. I did testing. And I found that the problem is that to achive the link between 2 drop lists, the .js code creates dinamically a 3th droplist. given the id = selectQID. This ID, as its created on the run time (not stored on the data base)is not accepted by any tailoring coding. it does not detect it..

thanks,
The administrator has disabled public write access.

Tailoring problem 2 years 4 weeks ago #97603

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7472
  • Thank you received: 1019
  • Karma: 295
OK,

You have condition on second select.

js need some update .

After :
$("#"+idNewSelectFilter).change(function(){
        $('#'+idSelectFilter).val($(this).val());

Put this
$('#'+idSelectFilter).trigger('change');

I use it more with array-flexible-duel-scale question then don't control this part.

js file updated and demo too : demonstration.sondages.pro/82885
The administrator has disabled public write access.
The following user(s) said Thank You: Gabriela

Tailoring problem 2 years 4 weeks ago #97615

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Thanks! now it works perfectly!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.146 seconds