Tailoring problem

More
3 years 10 months ago #97418 by Gabriela
Gabriela created the topic: Tailoring problem
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:

Please Log in to join the conversation.

More
3 years 9 months ago #97546 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 9 months ago #97587 by Gabriela
Gabriela replied the topic: Tailoring problem
Hi, thanks for answering.
What is test link?

merci much

Please Log in to join the conversation.

More
3 years 9 months ago #97590 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 9 months ago #97601 by Gabriela
Gabriela replied the 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,

Please Log in to join the conversation.

More
3 years 9 months ago #97603 by DenisChenu
DenisChenu replied the topic: Tailoring problem
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Gabriela

Please Log in to join the conversation.

More
3 years 9 months ago #97615 by Gabriela
Gabriela replied the topic: Tailoring problem
Thanks! now it works perfectly!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now