- Posts: 10109
- Thank you received: 3593
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to set conditions for dropdown in a multiple short text ?
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
4 years 10 months ago #185746
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to set conditions for dropdown in a multiple short text ?
There should also be keyup events attached to the original (now hidden) text input. No?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
4 years 10 months ago #185749
by DenisChenu
github.com/LimeSurvey/LimeSurvey/blob/e2...em_javascript.js#L27
Then maybe it can work with updating
to
PS @tpartner : .answer-item :text BUT .dropdown-item select . Unsure : maybe .answer-item select ?
But maybe too : remove Class usage , and use select[data-em] or something siilar (have issue with Question Theme or Question plugins about css usage and EM)
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.
Replied by DenisChenu on topic How to set conditions for dropdown in a multiple short text ?
Yes right …tpartner wrote: There should also be keyup events attached to the original (now hidden) text input. No?
github.com/LimeSurvey/LimeSurvey/blob/e2...em_javascript.js#L27
Then maybe it can work with updating
Code:
// Listener on the dropdowns - insert selected values into hidden text input $('#question'+qID+' select').change(function() { $(this).next('input[type="text"]').val($(this).val()).trigger('change'); });
Code:
// Listener on the dropdowns - insert selected values into hidden text input $('#question'+qID+' select').change(function() { $(this).next('input[type="text"]').val($(this).val()).trigger('keyup'); });
PS @tpartner : .answer-item :text BUT .dropdown-item select . Unsure : maybe .answer-item select ?
But maybe too : remove Class usage , and use select[data-em] or something siilar (have issue with Question Theme or Question plugins about css usage and EM)
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.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
4 years 10 months ago #185751
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to set conditions for dropdown in a multiple short text ?
Yep, I tried keyup, that didn't work either. (I suspect something to do with the first date workaround applied)
As far as I know, my solution works.
As far as I know, my solution works.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.