View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18486Bug reportsQuestion editorpublic2023-06-20 17:49
Reportermarcgold Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version5.3.x 
Summary18486: If statement error in question if "Other"
Description

Using an If statement in a question testing the value of a previous radio list question throws and invalid expression.

Steps To Reproduce

Steps to reproduce

Q1. Radio Buttons with Other enabled.
Q2. Text with If Statement. ie. {if (Q1.that == "AO01",'Display Text A','Else Display Text B')}

Expected result

Displayed on Question Summary: if (Q1 == "AO01", 'Display Text A', 'Else Display Text B')

(Write here what you expected to happen)

Actual result

if(Q4, Q4_other == "AO03", 'do you have for procuring vehicles for the business?', 'did you have for deciding on the type of car and how it was purchased?')
^ Error in Expression

The Q4_other shouldn't be there - Only happens if Q4_Other is On.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)5.3.8+220404
I will donate to the project if issue is resolvedNo
Browserany
Database type & versionn/a
Server OS (if known)Ubuntu
Webserver software & version (if known)Nginx
PHP Version8.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2022-11-11 17:48

developer   ~72706

Q1.that : see usage of that : https://manual.limesurvey.org/Expression_Manager#The_reserved_.27this.27.2C_.27self.27.2C_and_.27that.27_variables
It's done for this : return an array (for count or join for example)

Use Q1.NAOK fix your issue

Issue History

Date Modified Username Field Change
2022-11-11 16:01 marcgold New Issue
2022-11-11 17:48 DenisChenu Note Added: 72706
2022-11-11 17:48 DenisChenu Bug heat 0 => 2
2022-11-11 17:48 DenisChenu Assigned To => DenisChenu
2022-11-11 17:48 DenisChenu Status new => feedback
2022-11-15 17:33 DenisChenu Status feedback => resolved
2022-11-15 17:33 DenisChenu Resolution open => no change required
2023-06-20 17:49 c_schmitz Status resolved => closed