Welcome, Guest
Username: Password: Remember me

TOPIC: assign text to a numeric answer in the database

assign text to a numeric answer in the database 1 year 7 months ago #90329

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • Karma: 0
Good morning,
I have a survey on paper with numeric answers but each number corresponds to a text answer. For example: I have a list of options and each options has a number assigned.
1= I know about this
2= I am aware about this topic
ect...
Is it possible to make a numeric answer question but later in the data base I can read the correspondent text (not the numbers)?

Thank you very, much , hope I wasnt too confusing.
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90347

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4069
  • Thank you received: 746
  • Karma: 341
Not out-of-the-box but depending on the question type you can use JavaScript to display the answer codes (numbers) instead of the answer text.

What are your question types?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90390

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • Karma: 0
Hi, thanks for your answer.

Actually my survey is a pre and post test and its on paper.
The respondent can give more than one answer. Depending on his answers, we write the number of the answer in the boxes (max 3). Like this:


preandposttest.jpg



As u see its letters. And each letter corresponds to an answer. So If I type 3 letters on the 3 boxes (pre-test), and 3 letters on the 3 boxes (post-test),on the database it would be good it appears the text answers and not the letter...
I was thinking to use a matrix type (x axis Pre and post test) and Y axis...dont know..

Following the image, can you advice wich is the best way to achieve this?

Many many thanks
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90400

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4069
  • Thank you received: 746
  • Karma: 341
Ah, that complicates things. You will need to ensure that only valid letters (numbers?) are entered and that they are only used once for pre and once for post.

It may be easier and safer to use separate multiple-choice questions for pre and post.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90405

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • Karma: 0
;( instead of a matrix...?
Ok...I just wanted to make it as clean as posible.

many thanks again
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90423

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6222
  • Thank you received: 791
  • Karma: 238
Hello,

Maybe you can use one question for the 3 letters and after 3 equation question type with some expression to test the first/second/third letter and fill the answer according to the answer.

You can hide the equation question type or shown at the user for information if you want.


Think in equation you have to use:
if(test,"the text for test","")
with test something like that:
substr(QCODE,0,1) for the first letter, substr(QCODE,1,1) for the second etc ... (with QCODE the code of the first question).

Denis
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90432

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • Karma: 0
Thanks, Id like to try anything. especially because other users are complaining on questions lenght (and that they dont match the diplaying form on paper)

Please, can you specify a little bit your example. Tried to do it on my own but no results.

Thanks again.
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90442

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6222
  • Thank you received: 791
  • Karma: 238
Gabriela wrote:
Thanks, Id like to try anything. especially because other users are complaining on questions lenght (and that they dont match the diplaying form on paper)
I don't understand : why no use a list question type ?

Denis
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90445

  • Gabriela
  • Gabriela's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 64
  • Karma: 0
hi, thanks.
Ill try to explain with an image: this is the test I have to construct with limesurvey:

I have to figure out how to build it as similar as posible...

Thanks a lot
Attachments:
The administrator has disabled public write access.

Re: assign text to a numeric answer in the database 1 year 7 months ago #90474

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4069
  • Thank you received: 746
  • Karma: 341
I still think that to avoid input errors, multiple-options questions are the best bet despite the space required.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.120 seconds
Donation Image