Welcome to the LimeSurvey Community Forum

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

Issue with relevance equation on x-scale and making the question mandatory

  • kbadata
  • kbadata's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 3 hours ago - 1 day 3 hours ago #268568 by kbadata
 

File Attachment:

File Name: limesurvey...1-09.lss
File Size:45 KB
 

File Attachment:

File Name: limesurvey...1-09.lss
File Size:45 KB
Please help us help you and fill where relevant:
LimeSurvey version: Version 5.6.68+240625
Own server or LimeSurvey Cloud: own server
Survey theme/template: extended Fruity theme (KBA_Data_2023_subtitles_in_array)
==================

Hello,

I have created a question in which respondents have to register the time (in minutes) they have spent on various tasks per day for one week. It concerns an array text (only numbers) with a limit per field of 0 - 600 minutes (questioncode: q02).

In advance, I have asked a multiple choice question (questioncode: q01) in which they can indicate on which days they have actually worked. In this question I have used this solution ( Array number: set relevance equation in X-Scale ) to ensure that they only see the days that they have worked. I have also installed the plugin mentioned in this thread.

The problem I am currently facing is that, if I set the question to mandatory and a respondent has indicated that he has not worked one or more days, a message appears that not all (mandatory) fields have been filled in. This concerns the fields of the days that the respondent has not worked and are therefore not displayed.

Is there a solution for this problem?

Note: I have also used a script in the array question to create subtitles for the subquestions.

Hopefully your able to help me out!
Thanks in advance.

Victor
Last edit: 1 day 3 hours ago by kbadata.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 3 hours ago #268569 by Joffm
Hi,
please send the lss export of these relevant questions.

I am confused about this

I have asked a multiple choice question

and

set relevance equation in X-Scale


Where is a x-scale in a multiple question?

Therefore a lss export will really show what you are doing.

Help us to help you

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • kbadata
  • kbadata's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 3 hours ago #268570 by kbadata
Something went wrong with uploading the LSS export ( I thought I did that the first time). I've added it to the original post.

I set up the multiple choice question (q01) to determine for which days the respondent must fill in the second question. The problem arises with the array and making it mandatory in combination with relevance equation on the x scale (in the array question, q02).

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 1 hour ago - 1 day 1 hour ago #268571 by Joffm
Hi,
so  this is your problem.

This is obvious, because the cells are hidden by css and still in the DOM.

To solve it
set the question to "non-mandatory" and add a question validation equation, like
count(self)==10*count(that.q01)
Meaning: the number of filled cells in q02 is equal to 10 (number of taaks) * number of selected days in q01

 
 


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 day 1 hour ago by Joffm.
The following user(s) said Thank You: kbadata

Please Log in to join the conversation.

  • kbadata
  • kbadata's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 53 minutes ago #268572 by kbadata
Dear Joffm,

Thanks for your quick response and for the solution!

I already thought that the hidden fields were the problem. I just couldn't find a good solution for that. Your solution works well indeed! Thanks for that.

The only disadvantage of this is that the respondent already gets the (error) message before they have started filling in the fields. But that is not so bad in itself. But if there is a solution for that, I would like to hear it!

Thanks again!

Victor

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose