Show/Hide the question in the printed report
4 years 1 month ago #62574

Options that come to mind include:
(1) Have screen for the final report showing the list of questions asked with checkboxes next to each - so you could uncheck the ones you don't want to show (and that would get processed internally by the function that outputs to {ANSWERTABLE}?

Show/Hide the question in the printed report
4 years 1 month ago #62605

When I wrote this post I had in mind a simple chexkbox added in the question advanced settings tab
(as 'Show the tip' or 'Show in public statistics').

Your idea (approach #1) to have a screen for the final report is better, because it will probably add the possibility to filter out some other (header) fields included into the {ANSWERTABLE} like 'id', 'ipaddr', 'refurl', etc. (cf. printanswer.php file)

That's sure that your approach #2 looks more complete but I don't know if finally we will get a 'common-user friendly' feature !

Show/Hide the question in the printed report
4 years 1 month ago #62836

Tom,
I have read conscienciously the cited issue and installed your "Test of Expression Manager" ( and its "monstrous third page") and I have to say that I am very impressed with the control that the "Expression Manager" can give to a survey and the big step it suppose for conditional branching features. CHAPEAU!

Following with printed features:
Into the {ANSWERTABLE}, the answer column include both answer and [answercode].

<td class='printanswersanswertext'> No [0]</td>

For those doing evaluated questionnaires it will be a considerable improvement to get instead/with the [answercode] the assessment value for each answer.

(For the moment the only easy way to do this is to use the number of given points as [answercode]… The BIG problem is that you can only use alphanumerical characters (and underscore) so you can't use negative values ! )

Show/Hide the question in the printed report
4 years 1 month ago #62858

If you can't enter negative values for answercode, you might want to issue a bug report. That might actually become an enhancement request, since the answer code becomes part of the SGQA name, so the functions that generate the SGQA name would have to replace non-aphanumeric characters with underscores to ensure that they are valid database column names. Howevever, I could imagine people wanting to have [answercode] values that are either negative or decimal.

As to showing the answercode value in printouts, as you saw from ExpressionManager, I'm using a dot notation to get selected properties from the question. Currently, I have .code, and .value. If there are other properties people need, I could easily add them.

Show/Hide the question in the printed report
4 years 1 month ago #62866

Basically I don't really want to use negative values as answercode (just better than nothing) and I prefer dreaming for getting the possibility to see the assessment values displayed into the {ANSWERTABLE}

Show/Hide the question in the printed report
4 years 1 month ago #62873

That layout is exactly the sort of layout I was envisioning for those two ExpressionManager functions:
(a) showAllResponsesExcept(questionList,attributeList,attributeTitleList)
(b) showTheseResponses(questionList,attributeList,attributeTitleList)

A key challenge for LimeSurvey with these functions, however, is that it may be hard to create a GUI for them. I'm advocating for letting Expert Users have access to such features, even if there is no GUI for them. Then, if demand for them increases (and volunteers with GUI expertise become available), an appropriate GUI could be built to support the full range of LimeSurvey users.

At a minimum, I'm making sure that there is comprehensive error checking and reporting so that if an expert mis-types one of those functions, their survey won't blow up.

Shorter-term, however, if you have strong need for that type of {ANSWERTABLE} layout, you could clone the code that creates the ANSWERTABLE layout, augment it with the assessment value, create an {ANSWERTABLE2} field, and add a substitution line to templatereplace().

Show/Hide the question in the printed report
4 years 1 month ago #62909

Tom,
Thanks for the advice about {ANSWERTABLE2}…It looks like an acceptable solution.

About the GUI, I share your opinion that it doesn't seem so necessary at the first time, and I really hope that I could be pretty soon a good LS-Expression-Manager suffering beta tester.
So keep on "advocating".