View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08091Feature requestsSurvey editingpublic2021-03-08 23:10
ReporterDeveloperChris Assigned Toc_schmitz  
PrioritynormalSeverityfeature 
Status closedResolutionwon't fix 
Summary08091: The abilty to add custom fields to a question or group
Description

Give the ability to create any number of additional custom fields to a group or question.

These fields can then be placed into the survey using the {CUSTOM-FIELDNAME} syntax

This would greatly increase the flexibility of limesurvey.

Additional Information

For example:

I just created a moderate survey. to get the survey to look right I had to hide javascript into the description of every group to add the required classes to the appropriate questions.

I then saved the survey and imported it to create a second copy that was because both surveys were very similar (different target audience)

I was stunned to find the questions renumbered. Why? questions should be referenced by surveyid-question they should not be unique per survey!

Now I have to go through each group and redo the javascript.

Now if I was able to add a custom field to the groups and questions I could have given each question a custom class.

It could also be used for many other things. for example the custom javascript I used is fragile because its not displayed in the editor by default. another admin could come along and edit the description in wysiwyg thereby entirely deleting my javascript without realising it.

If we had custom fields that js or class or whatever would be safe!

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

DeveloperChris

DeveloperChris

2013-08-09 06:02

reporter   ~25944

Last edited: 2013-08-09 06:03

For those that are interested this is the custom javascript I used to manipulate the classes in each question group

[script type="text/javascript" charset="utf-8"]

$(document).ready(function() {

var questions= ['217','218'];
for ( var i = 0, l = classes.length; i<l; ++i ) {
$("#question" + questions[i]).addClass('text-short-wide');
}

questions = ['159','160'];
for ( var i = 0, l = classes.length; i<l; ++i ) {
$("#question" + questions[i]).addClass('wide');
}
});
[/script]

  • the [script] is used to prevent our intrusion prevention system declaring this post as an xss hack

The main issue apart from what is discussed above is it does not run until after popup messages are displayed and cleared (such as the mandatory Q warning). This makes the form render incorrectly behind the popup dialog.

Note: Popup dialogs should be replaced by flyins!

DenisChenu

DenisChenu

2013-10-01 14:48

developer   ~26461

2.1 accept Question plugin and Q attribute plugin.

Maybe before

Issue History

Date Modified Username Field Change
2013-08-09 05:52 DeveloperChris New Issue
2013-08-09 06:02 DeveloperChris Note Added: 25944
2013-08-09 06:03 DeveloperChris Note Edited: 25944
2013-10-01 14:47 DenisChenu Severity @50@ => feature
2013-10-01 14:47 DenisChenu Target Version => 2.1
2013-10-01 14:47 DenisChenu Description Updated
2013-10-01 14:47 DenisChenu Additional Information Updated
2013-10-01 14:48 DenisChenu Note Added: 26461
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2021-03-08 23:10 c_schmitz Assigned To => c_schmitz
2021-03-08 23:10 c_schmitz Status new => closed
2021-03-08 23:10 c_schmitz Resolution open => won't fix