Joe Bigler
Joe Bigler

Reputation: 179

Can the Likert option in PloneFormGen be set to display the questions with the answers when submitted as an email and stored in the data adapter

We are using PloneFormGen in Plone 4.3.2 When a Likert field is submitted, it only submits the question number with the answer. It does not submit the question.

Here's an example:

If the columns are:

Strongly disagree Disagree Neither agree nor disagree Agree Strongly agree

and the first question is

1.I use assessment everyday in class to monitor students learning.

the submitted answer will be something like

1: Disagree

if the submitter selected Disagree. What we need is something like

1.I use assessment everyday in class to monitor students learning. -Disagree

Or some other format that includes the question.

Thanks, Joe

Upvotes: 3

Views: 101

Answers (1)

Ulrich Schwarz
Ulrich Schwarz

Reputation: 7727

It's a bug in PloneFormGen: it does have code to generate a subordinate dl, but it's only run if a method len exists which doesn't but it wouldn't call it anyway.

Unfortunately, you can't really fix it through the ZMI, but if one were to courageously (or stupidly) find one's formLikertField.py in the buildout-cache/eggs folder, and in there, around line 139, erased or commented out the middle line in

    if not (safe_hasattr(value, 'get') and
            safe_hasattr(value, 'len') and
            len(value)):

one would get a mail with this:

Overall title
Question Number One
Strongly disagree
Question Number Two
Disagree

Upvotes: 2

Related Questions