View Issue Details

This issue affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
04490Bug reportsSurvey editingpublic2011-08-19 23:06
Reporternklime Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.91 
Summary04490: Dynamic texts (eg Mr. / Mrs.)
Description

Lack of ability to create dynamic text such as by sex of the respondent - right now we need to duplicate the whole question and determine their logic seperatly.

TagsNo tags attached.
Attached Files
dFunctions.rar (54,064 bytes)
nk_functions.zip (470,281 bytes)
Bug heat10
Complete LimeSurvey version number (& build)8518
I will donate to the project if issue is resolved
Browser
Database type & versionMySQL5 & 142
Server OS (if known)-
Webserver software & version (if known)lime-nk.pl
PHP VersionPHP5
Git branch / Pull Request URL

Users monitoring this issue

c_schmitz

Activities

Mazi

Mazi

2010-07-19 12:13

updater   ~12454

I'm assigning this one to Thibault as well, sounds like an extension of conditions on Limesurvey.

Mazi

Mazi

2010-07-26 23:54

updater   ~12488

Can you please add additional information (your priority, comments by other developers from Excel file, if you are looking for a develoepr or will take care of it yourself) to each ticket?!

Thanks!

mdekker

mdekker

2010-07-27 08:52

reporter   ~12495

Just thinking... why can't this be solved with javascript and insertans? Seems the easiest way to do it. Not a javascript expert, so code might not be valid but in the question text you could insert
<script>
if ("{INSERTANS:45251X1X10}" == 1 )
{
document.write( "Mr." );
} elseif ("{INSERTANS:45251X1X10}" == 2 )
document.write( "Mrs." );
} else {
document.write( "ERROR: Gender unknown" );
}
</script>

Mazi

Mazi

2010-07-27 12:56

updater   ~12497

mdekker, this sounds like a good idea.

We just need to create a nice interface for automatically inserting the according code. Maybe an extension/another version of the condition screen? You also have to state where to insert the text so this needs some kind of placeholder.

nklime

nklime

2010-08-02 12:28

reporter   ~12524

In file dFunctions we show our idea about Dynamic Texts, we want to move insertans and tokens into our interface.
Please check it.

Mazi

Mazi

2010-08-02 14:14

updater   ~12525

Carsten, can you have a look at it?!

c_schmitz

c_schmitz

2010-08-04 23:15

administrator   ~12558

I think that looks good - nklime, please go ahead.

nklime

nklime

2010-08-18 22:34

reporter   ~12654

I upload three new functions:

  • corrects for counters
  • dynamic texts
  • filters of answers

In zip file there are also diff patch and english instruction of funtions and usage of them.
I put the same zip into three tickets

Issue History

Date Modified Username Field Change
2010-07-18 21:36 nklime New Issue
2010-07-19 12:12 Mazi Assigned To => lemeur
2010-07-19 12:12 Mazi Status new => assigned
2010-07-19 12:13 Mazi Note Added: 12454
2010-07-26 22:32 c_schmitz Project Bug reports => @10@
2010-07-26 23:54 Mazi Note Added: 12488
2010-07-26 23:54 Mazi Status assigned => feedback
2010-07-27 08:52 mdekker Note Added: 12495
2010-07-27 12:56 Mazi Note Added: 12497
2010-07-27 15:42 c_schmitz Issue Monitored: c_schmitz
2010-08-02 12:25 nklime File Added: dFunctions.rar
2010-08-02 12:28 nklime Note Added: 12524
2010-08-02 12:28 nklime Status feedback => assigned
2010-08-02 14:14 Mazi Assigned To lemeur => c_schmitz
2010-08-02 14:14 Mazi Note Added: 12525
2010-08-04 23:15 c_schmitz Note Added: 12558
2010-08-18 22:30 nklime File Added: nk_functions.zip
2010-08-18 22:34 nklime Note Added: 12654
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2010-11-01 22:46 c_schmitz Status assigned => resolved
2010-11-01 22:46 c_schmitz Fixed in Version => 1.91
2010-11-01 22:46 c_schmitz Resolution open => fixed
2011-08-19 23:06 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing