Welcome to the LimeSurvey Community Forum

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

Enter only years/Terminate survey for specific years

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #224863 by eniisula
==================
Hello everyone,
I have a question that asks when is your company founded. I need a field to add only the year when it is founded and an option to be checked if the user refuses to respond. 
Also I need to terminate the survey if the user enters 2019 or 2020. 
Could you help me find a solution for these things?

Thank you in advance!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #224866 by Joffm
What type of question do you want to use?
Short and easy: numerical input with a quota.

There are many options:
a. numerical
b. date as dropdown
 
c. date as datepicker
 


You should send your approaches as lss export. So we see what you are doing.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 3 months ago by Joffm.
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #224868 by eniisula
Can you open it if I send it like this?
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #224869 by eniisula
I just tried using numerical input and I used a regex to validate the field but I can't seem to add quotas for this question. The question does not appear at all at the quota list of questions.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #224870 by Joffm
We always ask for lss exports, not lsq nor lsg.
Theses are language sensitive.
So we have to create a survey - hopefully with the same base language as the export to be able to import it.
Please ease our live.

By the way:

and an option to be checked if the user refuses to respond. 


This all you can handle with the known things - multiple with comment.

Furthermore there is a plugin "checkboxForText" that adds up to two checkboxes to text questions
[url] github.com/SondagesPro/LS-checkboxForText [/url]
Like this
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #224871 by eniisula
Sorry I don't quote understand how the exports work. It is the first time tried. Thank you for your quick replies always.
I am gonna check all this out and try to figure it out!
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #224872 by eniisula
What about this one? Is it the one you asked for?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #224876 by Joffm
Yes, that's rather fine, except
we don't want to go through 150 question to find the relevant one - especially in a uncommon language .
At least you should have told us, which question is the important one.
Therefore we advice:
  • copy the survey
  • remove everything not related to your question
  • send this as lss export.

Well, I think you refer to question S09.
1. The "Refuse" option.
You may
2. The termination
Use a quota with limit 0 (you want NO people in your survey with this data)
As you can't set a quota on a numeric question, you have to create a question of type "equation" where you generate a value (0 if the date was allowed, 1 if the date was not allowed, or whatever).
This equation you use for your quota.
Remember: You can check quotas only in an activated survey.

About quota: Read the manual.
[url] www.limesurvey.org/manual/Survey_quotas/en [/url]

Some last words:
The base language of your survey is "English". So all system messages will appear in English. Do you really want this?

As Denis already wrote "Regex to check numbers are not advisable"
You see, an error message like

is not very helpful.

IF you want to use regex, put it into the question validation with a helpful hint.
Do you really allow entries up to 2099?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: eniisula
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose