Welcome to the LimeSurvey Community Forum

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

is it possible to change the 'Y' in to a 1?

  • ErtanErsan
  • ErtanErsan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago - 5 years 1 month ago #189439 by ErtanErsan
Hi everyone,

In a multiple choice question answers, is it possible to change the 'Y' in to a 1?
The reason why I want to do this is because I have created a custom made report in witch Yes=1 and No=0.

I am using Limesurvey 3.0 version

I hope some one can help me with this.
Last edit: 5 years 1 month ago by ErtanErsan.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #189447 by Joffm
No, only when exporting the data to EXCEl, csv, ...
But if you have a custom made report you may easily change your report to handle this.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: holch
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #189452 by Joffm
If you are really unable to modify your report, you can do this:
After the multiple question add a hidden question of type "array" with the same subquestions and answer options "1= Yes", "0 = No"
In a following question of type equation you set the values of the array, like
{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}
...

And now you have the desired values in Q2., and your report will work.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 1 month ago #189454 by DenisChenu
Replied by DenisChenu on topic is it possible to change the 'Y' in to a 1?
There are an option in export GUI
www.limesurvey.org/manual/Export_responses

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: gabrieljenik
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #189461 by Joffm

There are an option in export GUI

That's what I wanted to say by

only when exporting the data to EXCEl, csv, ...


Unfortunately ErtanErsan gave no more information about his desired access to the data.
I always think the users read the manual and are more or less familiar with the GUI options.

So I assumed his report receives the data by a direct access to the database or the API.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • ErtanErsan
  • ErtanErsan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 weeks ago #189569 by ErtanErsan
Replied by ErtanErsan on topic is it possible to change the 'Y' in to a 1?
Hi Joffm,

I did now about report functionality yes to 1 and no to 0. I using a API.

Information you give me before solved my problem.

{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}

Thank you
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose