Check out the LimeSurvey source code on GitHub!

Tailoring problem

More
3 years 6 months ago #97418 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:

Please Log in to join the conversation.

More
3 years 6 months ago #97546 by DenisChenu
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).

Please Log in to join the conversation.

More
3 years 6 months ago #97587 by Gabriela
Hi, thanks for answering.
What is test link?

merci much

Please Log in to join the conversation.

More
3 years 6 months ago #97590 by DenisChenu
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).

Please Log in to join the conversation.

More
3 years 6 months ago #97601 by Gabriela
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 6 months ago #97603 by DenisChenu
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).
The following user(s) said Thank You: Gabriela

Please Log in to join the conversation.

More
3 years 6 months ago #97615 by Gabriela
Thanks! now it works perfectly!

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form