Welcome to the LimeSurvey Community Forum

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

Como retornar o valor de uma pergunta de múltipla escolha com opção outro

  • RicardoMiranda
  • RicardoMiranda's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186419 by RicardoMiranda
Prezados Amigos.


Estou precisando saber como retornar o valor(texto preenchido) de uma questão de múltipla escolha com a opçaõ outro preenchida.

1- Como tomou conhecimento do Curso ?

O Internet

O Cartaz

O Amigos

x Outros[Televisão]


O código SGAC para questões me retorna as opções (internet,cartaz,amigos e other) o que eu gostaria era saber como retornar o texto da Outros( televisão) para colocar em uma notificação de email ?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago - 4 years 8 months ago #186427 by Joffm
Olá,

{if(Q1=="-oth-",Q1_other,Q1.shown)}






o multipla
{list(if(Q1_SQ001=="Y",Q1_SQ001.question,""),if(Q1_SQ002=="Y",Q1_SQ002.question,""),if(Q1_SQ003=="Y",Q1_SQ003.question,""),Q1_other)}



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 8 months ago by Joffm.
The topic has been locked.
  • RicardoMiranda
  • RicardoMiranda's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186789 by RicardoMiranda
O problema é que eu tenho que colocar na notificação de email eu acho que só usando o código SGAC, esta opção {if(Q1=="-oth-",Q1_other,Q1.shown)}funcionaria na notificação de email ?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186801 by holch
Porque você não tenta? Deveria funcionar. O código SGQA (SurveyGroupQuestionAnswer) não deveria ser usado mais. Hoje se usa o EM para isso, muito mais flexível.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • RicardoMiranda
  • RicardoMiranda's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186983 by RicardoMiranda
Caros Amigos.

Consegui usar o EM na notificação de email o meu problema tenho uma pergunta tipo Multipla Escolha com a

opção Outros ativada com o conteúdo da resposta [Algo mais] estava precisando saber como colocar na

notificação de email o contéudo da resposta [Algo mais] .

Segue o exemplo anexado.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186986 by Joffm
{if(!is_empty(Q2_other),Q2_other,"")}

Joffm

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.

Lime-years ahead

Online-surveys for every purse and purpose