Welcome to the LimeSurvey Community Forum

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

Archetype test creation

More
7 years 3 weeks ago #149631 by BM1
Archetype test creation was created by BM1
Hello,

I want to create an archetype survey. The question goes as follows:

You will need to give 4 points in total to every line of 4 adjectives. Give the score you think that suits the most. For example

Angry 0 Happy 1 Sad 0 Content 3 Total OK (max 4)
.... 4 .... 0 ...... 0 ..... 0 Total OK (max 4)
.... 1 .... 1 ...... 1 ..... 1 Total OK (max 4)
.... 1 .... 1 ...... 1 ..... 0 Total NOT OK (max4)

I use this information to create archetypes. I will need to be able to see all the information about the participants because the archetype test is peronal in this case.

Can you please assist me?

Regards,
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 weeks ago #149679 by tpartner
Replied by tpartner on topic Archetype test creation
Question type: Array (Texts) - manual.limesurvey.org/Question_type_-_Array_(Texts)

Question advanced settings:
  • Numbers only: ON
  • Show totals for: Rows
  • Question validation equation (given y-scale sub-question codes "Y001, Y002, Y003, Y004"):
    Code:
    sum(self.sq_Y001) == 4 && sum(self.sq_Y002) == 4 && sum(self.sq_Y003) == 4 && sum(self.sq_Y004) == 4


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: BM1
The topic has been locked.
More
7 years 3 weeks ago #149693 by BM1
Replied by BM1 on topic Archetype test creation
Thank you for your answer! Can I build it like this?
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 weeks ago #149697 by tpartner
Replied by tpartner on topic Archetype test creation
I would use separate array questions for each row.

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: BM1
The topic has been locked.
More
7 years 3 weeks ago #149722 by BM1
Replied by BM1 on topic Archetype test creation
I have a lot of problems with this survey. How can I create the 4 columns, 4 boxes?

What does Y001 stand for? Just a random code?

sum(self.sq_Y001), validation doesn't work

Could you show me how I do 1 row?
The topic has been locked.
More
7 years 3 weeks ago #149724 by BM1
Replied by BM1 on topic Archetype test creation
Subquestions?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 weeks ago #149727 by holch
Replied by holch on topic Archetype test creation
The "sq" is the question code and "Y001" is the subquestion code that Tpartner defined in his example. Of course you need to adapt this to the question code and the subquestion code that you gave it in your survey.

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

The following user(s) said Thank You: BM1
The topic has been locked.
More
7 years 1 week ago #150217 by BM1
Replied by BM1 on topic Archetype test creation


Because of you I was able to build build the questions separately . Thank you so much!
Now I have 2 more questions.

1. Can I put a zero in every box? All questions are mandatory, so if they leave a blank, they can't submit the survey. So a zero to start with would be nice ;)

2. I need to build a validition equation. The sum of every question has to be 4.
Would it be sum(self.V1) == 4 ? And how can I add this in very question?

Thank you!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 week ago - 7 years 1 week ago #150329 by tpartner
Replied by tpartner on topic Archetype test creation
BM1 wrote: Can I put a zero in every box?
Set up your survey to use JavaScript and place the following script in the source of the question:
Code:
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() { 
    $('#question{QID} input[type="text"]:not(:disabled)').each(function(i) {
      if($(this).val() == '') {
        $(this).val(0);
      }        
    });  
    });  
</script>


BM1 wrote: I need to build a validition equation. The sum of every question has to be 4.
This was already answered In my post above. Given the sub-question codes in your screenshot, this should work:
Code:
sum(self.sq_SQ001) == 4
This effectively says "the sum of all elements within SQ001 of this question must equal 4".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 1 week ago by tpartner.
The following user(s) said Thank You: BM1
The topic has been locked.
More
7 years 5 days ago - 7 years 5 days ago #151113 by BM1
Replied by BM1 on topic Archetype test creation
Thank you Tony. Because of you I was aible to create the test! Works perfectly!

Now I want to export and import the questions groups. I use this groups in different surveys.

When I import the file I see 3 validition tips. I only need 'Give 4 points'. The questions has to be

mandatory. Without '*please complete all the parts ' and '*this question is mandatory'. The zero's need to stay.

Can somebody help me please? :silly:

Last edit: 7 years 5 days ago by BM1. Reason: Typo
The topic has been locked.
More
7 years 5 days ago #151115 by jelo
Replied by jelo on topic Archetype test creation
Deactivate help/tips in the advanced options of the question. That will reduce the number of hints and warnings.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 4 days ago #151190 by BM1
Replied by BM1 on topic Archetype test creation
Thank you but the 'hide question tip' didn't work. I managed to fix it another way. I only get the wrong validation tips in the first en second question group. I added 2 questions groups so my test could start correctly in 3 and 4. Very strange. I add the survey as an attachment.

Also, does somebody know how I can get rid of the red boxes?



Thank you :woohoo:

File Attachment:

File Name: Exportcomp...lish.lss
File Size:252 KB
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose