View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
03772Bug reportsSurvey editingpublic2009-11-13 16:40
ReporterEvan Assigned ToEvan  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.86 
Fixed in Version1.87RC1 
Summary03772: greater control over question layout
Description

It is currently possible to style questions with some degree of flexibility but if you want, say, the "help" text to be displayed after the question inputs. this is not possible because some of the key words are only available in question_start.pstpl. It would be good if the key words from question_start.pstpl were available in question.pstpl.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)7760
I will donate to the project if issue is resolved
Browserany
Database type & versionMySQL 5.0.75
Server OS (if known)ubuntu4.2
Webserver software & version (if known)Apache/2.2.11
PHP Version5.2.6-3

Users monitoring this issue

There are no users monitoring this issue.

Activities

Evan

Evan

2009-10-14 14:48

reporter   ~09791

made all keywords from question_start.pstpl available to question.pstpl. Also added new keywords:
{QUESTION_ID} - the UID for each question
{QUESTION_CLASS} - unique class for each question type
{QUESTION_MAN_CLASS} - class if question is mandatory
{QUESTION_INPUT_ERROR_CLASS} - class if there was user input error
{QUESTION_DISPLAY} - style attribute if question is conditional

question_start.pstpl keywords now available in question.pstpl:
{QUESTION_TEXT} - Text for the question
{QUESTION_HELP} - (survey admin defined) Help text for question
{QUESTION_MANDATORY} - mandatory identifier for question (usually *)
{QUESTION_MAN_MESSAGE} - mandatory message text
{QUESTION_VALID_MESSAGE} - validation message text

These changes are backwards compatible with older templates.

Issue History

Date Modified Username Field Change
2009-10-14 14:09 Evan New Issue
2009-10-14 14:09 Evan Status new => assigned
2009-10-14 14:09 Evan Assigned To => user372
2009-10-14 14:09 Evan LimeSurvey build number => 7760
2009-10-14 14:09 Evan Browser => any
2009-10-14 14:09 Evan Database & DB-Version => MySQL 5.0.75
2009-10-14 14:09 Evan Operating System (Server) => ubuntu4.2
2009-10-14 14:09 Evan Webserver => Apache/2.2.11
2009-10-14 14:09 Evan PHP Version => 5.2.6-3
2009-10-14 14:09 Evan Assigned To user372 => Evan
2009-10-14 14:48 Evan Note Added: 09791
2009-10-14 14:48 Evan Status assigned => resolved
2009-10-14 14:48 Evan Fixed in Version => 1.87RC1
2009-10-14 14:48 Evan Resolution open => fixed
2009-11-13 16:40 c_schmitz Status resolved => closed
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing