Hi Nate,
like mentioned in my e-mail to you earlier, I would be interested in a new feature that represents matrices like questions. I think the link below provides a very detailed information about what I mean.

This kind of question is widely-used for online employee surveys or online customer surveys.
http://www.2ask.net/orbiz/DigiTrade/7727f6d3c2b5586a8a623c27cbf6ad51/Tab...

Don't get me wrong, I'm just thinking about type 1. But a flexible type solving all would be great ;-)

In my opinion there are more feature which would come in handy for the webform module. So I would like to chip-in.

So what are your opinions?

Cheers
Ralf

Comments

emdalton’s picture

I would be interested in this, as well.

I would also be interested in a function like that provided by http://www.selectsmart.com/ which would match survey matrix responses to the "best match" of previously defined nodes. We would use this at the university where I work to help prospective students in selecting a major.

stevepowell’s picture

yes, would really appreciate this too. Had a look in the dev version but couldn't see any such new functionality. Just wondering if there is any progress on this?
thanks for great module by the way.

Anonymous’s picture

+1 for this feature!

txcrew

Nall’s picture

StatusFileSize
new11.69 KB

I too had need of the matrix/table question (though we called it a 'grid' question) for webform, so I made one based largely on the select component. It works in my setup, though it's not been exhaustively tested yet. With that in mind and the quietness of this request I'll attach it here anyway, for the curious and intrepid or just plain 'needy'; hopefully that's okay. Save in webform/components/ as grid.inc, and happy webforming! Provided as-is, use at your own risk, please tell me if it breaks, etc.

[edit: Newer version attached to comment #7. ]

stevepowell’s picture

thanks for the grid component, we are trying it out now. will use css to make it look more like a grid. will let you know if we have any issues

asciikewl’s picture

Wonderful!!! Exactly what I was looking for.

+1 for this feature too!

Does anyone have some CSS examples to make it look like a grid?

Thanx

Anton

Nall’s picture

Status: Active » Needs review
StatusFileSize
new12.73 KB

Oh, I did put some CSS in style.css, it was just this:

div.grid-question {
    float: left;
}

The theme function takes care of sizing the width of each element of the grid. There may or may not be a better way to do this, I'll hear any suggestions.

I've attached a new version to this post with the following fixes:

  • I left some debug code in around the submission display grid. (Bad Nall, no fish.)
  • Questions outputted in an odd order; it wasn't me, but I've put in a workaround that uses fractional #weights.
  • [edit: Random ordering of questions and/or answers controlled by checkbox, for avoiding order bias.]
quicksketch’s picture

StatusFileSize
new12.98 KB
new31.79 KB
new15.59 KB

wow

And I don't lightly use <h3> ;)

Thanks so much Nall for this incredible enhancement. The code is very well written and meshes well with the current code (which admittedly is a bit more crusty). I took it a step further tonight and applied additional theming to make everything output in a table instead of divs. Take a look at the attached screenshots. I'm going to do some more code reviewing before committing, but it looks very solid. Great work!

quicksketch’s picture

Status: Needs review » Fixed

I went ahead and committed grid.inc to 5.x CVS so we can keep it up to date with other fixes that'll be going in this week. Thanks guys!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.