View Issue Details

IDProjectCategoryView StatusLast Update
14336Bug reports[All Projects] Survey designpublic2019-07-15 11:41
ReporterKompetenzZAssigned Tocdorin 
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary14336: Tip for array question type
Description

Most questions usually include a tip that says "Please choose one of the following options" or a hint text on how to fill out the question. The Array question type has not this tip. I wish me more consistency here. If there is no tip I cannot adapt the tip text with javascript.

TagsNo tags attached.
Complete LimeSurvey version number (& build) LimeSurvey Version 3.15.5
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database & DB-Version?
Server OS (if known)
Webserver software & version (if known)hosted limesurvey
PHP Version?

Activities

DenisChenu

DenisChenu

2018-12-11 15:49

developer   ~49918

Easy way to add your tip on near any question :
Set Question validation equation : https://manual.limesurvey.org/Question_type_-_Array#Question_validation_equation_.28em_validation_q.29 to 1 == 1 (always true)
Set Question validation tip to your own string.

No need js :)

KompetenzZ

KompetenzZ

2018-12-11 16:36

reporter   ~49919

Thank you, and for other question types, which have a tip by default? How can I remove the default tip ".ls-question-message.ls-em-tip.em_default.ls-em-success" question specific? Because I want to adapt the tip text of several questions, whereby questions without adaption should show thier origin tip.

DenisChenu

DenisChenu

2018-12-11 17:05

developer   ~49921

I hide this default tip a lot in previous template

.ls-em-tip.em_default{display:none}

KompetenzZ

KompetenzZ

2018-12-11 17:13

reporter   ~49922

Shure, but then you have to write a new tip for every single question

DenisChenu

DenisChenu

2018-12-11 17:21

developer   ~49923

Then : adding a css class : Question css class : hide-default-tip
.hide-default-tip .ls-em-tip.em_default{display:none}

KompetenzZ

KompetenzZ

2018-12-11 17:28

reporter   ~49925

I wrote in custom.css:
.hide-default-tip .ls-em-tip.em_default{display:none}

and in questions options "CSS class(es)":
hide-default-tip

I think that was what you mean. Thank you very much. I'll post it in the forum when if you don't mind.

DenisChenu

DenisChenu

2018-12-11 18:06

developer   ~49926

If it work, yes, you can post on forum : LPRAB licence ;) (WTFPL in english)

dominikvitt

dominikvitt

2019-02-08 11:18

developer   ~50455

@ KompetenzZ:
Tip for Array question type works very well.
To see it rendered, you have to either turn on mandatory field or to set Minimum and Maximum answers.
See attached screenshot.
Please confirm if this works for you.



DenisChenu

DenisChenu

2019-02-08 11:22

developer   ~50456

@domikvitt : i think it's the "default" help.

In single choice we have : "Choose one of the answer" for default help.
None in array question type (something like "Choose one of the answer on each line")

Personnaly : i think "Choose one of the answer" muist appear only if question is mandatory : it's nolt the case today.
And adding "Enter some caracter" for mandatory question too.

But all of this are more better if "mandatory" are generated like othe attribute ( !is_empty(QCODE) )

dominikvitt

dominikvitt

2019-02-08 11:25

developer   ~50457

Yes, I can see now that it doesn't work for mandatory.
Would try to fix it.

DenisChenu

DenisChenu

2019-02-08 11:27

developer   ~50458

Hey : single choice always add "Choose one of the answer" , not array.

BUT : in my opinion : it's a old situation : adding it now can broke some template, css etc …

KompetenzZ

KompetenzZ

2019-02-09 00:16

reporter   ~50475

Thanks for checking this issue. I think Denis said the relevant points.

Kind regards.

Issue History

Date Modified Username Field Change
2018-12-11 13:24 KompetenzZ New Issue
2018-12-11 15:49 DenisChenu Note Added: 49918
2018-12-11 16:36 KompetenzZ Note Added: 49919
2018-12-11 17:05 DenisChenu Note Added: 49921
2018-12-11 17:13 KompetenzZ Note Added: 49922
2018-12-11 17:21 DenisChenu Note Added: 49923
2018-12-11 17:28 KompetenzZ Note Added: 49925
2018-12-11 18:06 DenisChenu Note Added: 49926
2019-02-07 16:08 dominikvitt Assigned To => dominikvitt
2019-02-07 16:08 dominikvitt Status new => assigned
2019-02-08 11:18 dominikvitt File Added: Screenshot_2019-02-08_11-16-27.png
2019-02-08 11:18 dominikvitt Note Added: 50455
2019-02-08 11:22 DenisChenu Note Added: 50456
2019-02-08 11:25 dominikvitt Note Added: 50457
2019-02-08 11:27 DenisChenu Note Added: 50458
2019-02-09 00:16 KompetenzZ Note Added: 50475
2019-07-15 11:41 dominikvitt Assigned To dominikvitt => cdorin