Welcome to the LimeSurvey Community Forum

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

Automatically populate a radio button response through a field.

  • paulo_sas
  • paulo_sas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242683 by paulo_sas
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.0.2
Own server or LimeSurvey hosting: Own
Survey theme/template:Sea
==================
Hi there, i need your help!
I'm tryng to fill a radio button anwserI'm trying to automatically populate a radio button response through a field. But I can't using the equation below.{if(html_entity_decode(topic)=='Teste,'topicauto='A1','')}

The radio button response is filled immediately without looking at the if condition

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242684 by Joffm
Hi,
the syntax of your expression is wrong (maybe a typo?)

{if(html_entity_decode(topic)=='Teste,'topicauto='A1','')}
{if(html_entity_decode(topic)=='Teste',topicauto='A1','')}

Here a working example
 

File Attachment:

File Name: limesurvey...2252.lss
File Size:33 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • paulo_sas
  • paulo_sas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242691 by paulo_sas
Thanks, I mistyped. Unfortunately it doesn't work even with correct typing

Please Log in to join the conversation.

  • paulo_sas
  • paulo_sas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242692 by paulo_sas
I try your test file and dont work.
I want when type Test 1 the radio button Test 1 is activate

Please Log in to join the conversation.

  • paulo_sas
  • paulo_sas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242693 by paulo_sas
Sorry i was typing Test 1 and not test1

Please Log in to join the conversation.

  • paulo_sas
  • paulo_sas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242694 by paulo_sas
Thanks works!
My mistake is that i was work with survey all in one, and dont works. In group works
Thanks

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose