Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Tailoring problem

More
10 years 9 months ago #97418 by Gabriela
Tailoring problem was created by Gabriela
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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97546 by DenisChenu
Replied by DenisChenu on topic Tailoring problem
Hello,

Maybe best is to have a "test link".

Denis

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.
More
10 years 8 months ago #97587 by Gabriela
Replied by Gabriela on topic Tailoring problem
Hi, thanks for answering.
What is test link?

merci much
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97590 by DenisChenu
Replied by DenisChenu on topic Tailoring problem
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

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.
More
10 years 8 months ago #97601 by Gabriela
Replied by Gabriela on topic Tailoring problem
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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97603 by DenisChenu
Replied by DenisChenu on topic Tailoring problem
OK,

You have condition on second select.

js need some update .

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

Put this
Code:
$('#'+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

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 following user(s) said Thank You: Gabriela
The topic has been locked.
More
10 years 8 months ago #97615 by Gabriela
Replied by Gabriela on topic Tailoring problem
Thanks! now it works perfectly!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose