- Posts: 4
- Thank you received: 0
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
- Topic Author
- Offline
- Banned
Less
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?
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12938
- Thank you received: 3979
3 years 1 month ago #214008
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic SGQA for Yes/No Question Type
Hi,
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]
Here you read
Joffm
By the way: Which version are you using?
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]
Here you read
But you want to display the Code itself, {QCode}INSERTANS:SGQA - the display value of an answer (e.g., "Yes") - similar to using {QCODE.shown}.
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
- Topic Author
- Offline
- Banned
Less
More
- Posts: 4
- Thank you received: 0
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.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12938
- Thank you received: 3979
3 years 1 month ago #214027
by Joffm
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
Replied by Joffm on topic SGQA for Yes/No Question Type
And which error?I got error when I use the following code:
https://URL?Q5={Q5.value}
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 1 month ago #214028
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic SGQA for Yes/No Question Type
I bet on this one. It was a mistake to not name it "assvalue"{Q5.value} is the assessment value of this question. Did you enable it?
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
- Topic Author
- Offline
- Banned
Less
More
- Posts: 4
- Thank you received: 0
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
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
- Topic Author
- Offline
- Banned
Less
More
- Posts: 4
- Thank you received: 0
3 years 1 month ago #214032
by Kaallaci_279797
Replied by Kaallaci_279797 on topic SGQA for Yes/No Question Type
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 1 month ago #214033
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.