Welcome to the LimeSurvey Community Forum

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

SGQA for Yes/No Question Type

  • Kaallaci_279797
  • Kaallaci_279797's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
3 years 1 month ago #214003 by Kaallaci_279797
SGQA for Yes/No Question Type was created by Kaallaci_279797
Hi All,

How to setup the SGQA code for Yes/No Question to return the internal value? instead of the display Label.

For Example:

Yes/No Question Type:
English      [Y] Yes   [N] No
Japanese   [Y] はい  [N] ノー

End URL : https://url?&Q1={INSERTANS:211367X3X20}

Now it return following result:

English Page Result: https://url?&Q1=Yes
Japanese Page Result: https://url?&Q1=はい

But I want to the following result:

English Page Result: https://url?&Q1=Y or  https://url?&Q1=[Y]
Japanese Page Result: https://url?&Q1=Y or  https://url?&Q1=[Y]

Any hints?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #214008 by Joffm
Replied by Joffm on topic SGQA for Yes/No Question Type
Hi,
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]

Here you read

INSERTANS:SGQA - the display value of an answer (e.g., "Yes") - similar to using {QCODE.shown}.

But you want to display the Code itself, {QCode}

Joffm

By the way: Which version are you using?
 

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.
  • Kaallaci_279797
  • Kaallaci_279797's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
3 years 1 month ago #214010 by Kaallaci_279797
Replied by Kaallaci_279797 on topic SGQA for Yes/No Question Type
Thanks for your reply, I am newbie, so don't know to how to implement

I got error when I use the following code:

https://URL?Q5={Q5.value}

One more question:

What is the code for form submit date/time?

Beside, I am using Version 3.25.18+210316

Many thanks in advance.




 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #214027 by Joffm
Replied by Joffm on topic SGQA for Yes/No Question Type

I got error when I use the following code:

https://URL?Q5={Q5.value}

And which error?
You use it as end-url. So, how does the link look like?

"{Q5.value}" is the assessment value of this question. Did you enable it?
{Q5} is sufficient.


And your other question.
To see this, I use to activate the survey, enter some data and have a look at the answer table.

And you may try all these question properties like ".code", ".value", ".shown" inserting them into a question of type "text display" and see what they show.
This way you  can try several question types and see the results.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 1 month ago #214028 by jelo
Replied by jelo on topic SGQA for Yes/No Question Type

 {Q5.value} is the assessment value of this question. Did you enable it?

I bet on this one. It was a mistake to not name it "assvalue" ;-)
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Kaallaci_279797
  • Kaallaci_279797's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
3 years 1 month ago #214030 by Kaallaci_279797
Replied by Kaallaci_279797 on topic SGQA for Yes/No Question Type
> {Q5} is sufficient.
yes, I can get the value now

How about the form submit date/time

{datestamp} return following error:
Undefined variable
The topic has been locked.
  • Kaallaci_279797
  • Kaallaci_279797's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
3 years 1 month ago #214032 by Kaallaci_279797
Replied by Kaallaci_279797 on topic SGQA for Yes/No Question Type
One more question:



Is it possible to change Language menu item text?

For example: I want to change it to:

日文 - Japanese
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #214033 by tpartner
Replied by tpartner on topic SGQA for Yes/No Question Type
Please open a new thread for a change of topic.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose