Welcome to the LimeSurvey Community Forum

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

Quota

  • brais24
  • brais24's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 year 7 months ago #243970 by brais24
Quota was created by brais24
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.25
Own server or LimeSurvey hosting: Own
Survey theme/template: Vanilla
==================
Hi there People, i have a question with the quotas, i want to make this quota for example, work.

 

But the question is, this is a quota that comes prefilled on the participant table.

 

To do that, i use an ecuation question, to prefill the fields
 

I think the Quota doesnt count because of this, the equation prefill the question but with the code "Comer", instead of select the right option or put the complete name, can someone help me with this?

 

I attach the survey  

File Attachment:

File Name: limesurvey...9261.lss
File Size:718 KB


Thanks for the help.
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 7 months ago - 1 year 7 months ago #243972 by Joffm
Replied by Joffm on topic Quota
Hi, rough and quick answer.
Why are the equations after the question?
It's a bit confusing.
Better you use one equation question where you do all your assignments.

And you should use the code of the answer option in the quota and in the assignment equation, not the text.
And if there is text in the additional attribute instead of the code, you have to use a nested IF
{PR2=if(TOKEN_ATTRIBUTE_1="Comercio e marketing",1,if(TOKEN:ATTRIBUTE_1=="Something else",2,if(....)))}

You see, I never use these default codes "A1", "A2",...

More later
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 7 months ago by Joffm.

Please Log in to join the conversation.

  • brais24
  • brais24's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 year 7 months ago #243973 by brais24
Replied by brais24 on topic Quota
Yeah, i see, is too much work to do what i want, but thank you anyway, you can mark this as closed.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 7 months ago #243986 by Joffm
Replied by Joffm on topic Quota
Hi,
I do not see, what is "much work"

Attributes like this with codes:
 

A general equation to assign all needed values (at the beginning of the survey):
 

And you get
 

By the way: Why did you get "comer"?
Limesurvey handled "comercio e marketing" as a code. But codes are limited to 5 characters. 

Joffm

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose