View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08981Bug reportsSurvey editingpublic2014-04-25 18:13
ReporterBart Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.05+ 
Summary08981: Question Type Multiple Short Text prefills with an undesired space
Description

This is what i try to do.

Prior question was NOT mandatory.
So:
ANSWER1 is answered, ANSWER2 and ANSWER3 both empty.
I test this with "is_empty", and indeed ANSWER1 is filled, ANSWER2 and ANSWER3 are empty.

With the answers I am filling a Question Type Multiple Short Text. Further on I have a follow-up question with an array filter on this Multiple Short Text Question.
Subquestion is:
SQ001 {ANSWER1}
SQ002 {ANSWER2}
SQ003 {ANSWER3}

So far, so good.
I want to use the Multiple Text Question as an array filter, so I fill the answer options as well.
I tried filling it with:
{ANSWER1} {ANSWER2} {ANSWER3}
later with{ANSWER1.NAOK} {ANSWER2.NAOK} {ANSWER3.NAOK}
with {if(!is_empty(ANSWER1.NAOK),ANSWER1.NAOK,'')}, etc
I even used the trim function.

The problem is that LimeSurvey as adding a space to the answer.
This space is causing the NAOK to be NOT EMPTY, and my follow-up question thus shows all answers,
including ANSWER2 and ANSWER3 as a empty line.
(If I manually use the backspace, then the space is deleted, causing the NAOK to be empty.)

The !is_empty is working correctly, since the line is not empty, but holding the undesired space.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)latest
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionall
Server OS (if known)all
Webserver software & version (if known)all
PHP Versionall

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-04-21 22:17

administrator   ~29839

Please attach a simple 2 question test survey demonstrating the issue. Thank you.

c_schmitz

c_schmitz

2014-04-25 10:23

administrator   ~29881

Feedback please?

Bart

Bart

2014-04-25 18:08

reporter   ~29895

The problem was most likely caused by using a mix of HTML editor and "source editor".
This phenonemon came after upgrading, but I now know that I have edit equations in the source editor.
For me, the problem is solved with this workaround, you could close this issue.

Issue History

Date Modified Username Field Change
2014-04-19 17:50 Bart New Issue
2014-04-21 22:17 c_schmitz Note Added: 29839
2014-04-21 22:17 c_schmitz Assigned To => c_schmitz
2014-04-21 22:17 c_schmitz Status new => feedback
2014-04-25 10:23 c_schmitz Note Added: 29881
2014-04-25 18:08 Bart Note Added: 29895
2014-04-25 18:08 Bart Status feedback => assigned
2014-04-25 18:13 c_schmitz Status assigned => closed
2014-04-25 18:13 c_schmitz Resolution open => unable to reproduce
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing