Welcome to the LimeSurvey Community Forum

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

semantic differential - mandatory and with "no answer"

  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194382 by Joffm
Hi, all,

here a question where I do not find a solution.

Scenario:
array with sementic differential and "no answer" at the right.
This is easy, if I set "not mandatory" and "show no answer=ON"
Answer codes from 1 to 7.

But the precoded "no answer" is not desired.
So I set {Q1_SQ001=0}, set it to a not existing answer code.
And I got:

which looks better.

But still the question is not mandatory.
I do not find a way to validate that each row is answered.
This because in the answer table the "no answer" column is empty.
In Q11_SQ002 "no answer" was selected.


So, my question:
Is there a way to validate this, or a different approach to have a mandatory array with an answer option "no answer", but move this to the right?

This is what I have so far, but the client is not satisfied.


Thanks in advance

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194393 by holch
Dear Joffm, first the basics:
Which LS version?
Which template/theme?
Can you provide a LSS?

;-)

Hhahahaha, I couldn't resist, sorry. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194395 by Joffm
Oh, yes, I am sure, that you couldn't resist.
But you're absolutely right.
If we disregard the simplest rules, what should the newcomers think of us?

Version 3.22.1+200129
Theme doesn't seem to be important.
Here I showed it in "fruity", but in the real survey I use an extended theme from tfr.

File Attachment:

File Name: limesurvey...7582.lss
File Size:24 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194396 by holch
I bet that Tpartner will find a solution. If I would have to guess, he will probably create a question with the "no answer" option as part of the scale and not via the LS settings, and then move this column to the right via Javascript, or something like that. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194417 by tpartner
Did I hear my name?

This small script will insert the last column before the second last column:

Code:
<script type="text/javascript" charset="utf-8">
 
  $(document).on('ready pjax:scriptcomplete',function(){
 
    // Define this question
    var thisQuestion = $('#question{QID}');
 
    // Move the last column
    $('col:nth-last-child(2)', thisQuestion).before($('col:last-child', thisQuestion));
 
    $('table.subquestion-list tr', thisQuestion).each(function(i) {
      $('> *:nth-last-child(2)', this).before($('> *:last-child', this));
    });
    });
</script>



Sample survey attached:

File Attachment:

File Name: limesurvey...5821.lss
File Size:21 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194419 by Joffm
Hi, Tony,
yes, you're right.

But since I'm too shy to call you directly,
holch had the assumption that you would help me (which of course I also hoped).

As usual an awful solution.

Thanks a lot.

Joffm

And again I learned something more about javascript.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194444 by DenisChenu
A good idea for a question theme :)

Place the right part at position "X" :)

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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194466 by tpartner
Yeah, easy, I'll do it this week.

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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194487 by DenisChenu

tpartner wrote: Yeah, easy, I'll do it this week.

Unsure it was so easy :)

And i didn't say this to have one :)

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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194502 by tpartner

DenisChenu wrote: And i didn't say this to have one

No worries, I did not assume that and I welcome suggestions. :)

I hope the community will benefit from the custom question theme here - github.com/tpartner/LimeSurvey-Adjustabl...c-Differential-Array

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194517 by DenisChenu
I see you use javascript ,

I confirm : doing ot without js seems near impossible. But in my opinion : it must be available without js .... questiontheme still lack of real functionnality

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.

Lime-years ahead

Online-surveys for every purse and purpose