Grids are like radios, well they are radios really, just if you have numerous questions with similar options, grids trump disparate radios display-wise (or so I'm told -- highly debatable).

Anyway, how about having each grid question as a conditional too?

Comments

quicksketch’s picture

Currently our conditionals system is set up to handle one question per component, so support for grids is a little bit difficult. Oddly we could actually do complex conditionals more easily, such as "at least 3 choices need to be X" than we could make each radio set a separate conditional. But in any case, it's a legitimate request, though maybe not something we're going to get to soon.

dsrikanth’s picture

Would love to hear about any progress on this one.

danchadwick’s picture

Version: 7.x-4.0-alpha3 » 7.x-4.x-dev
Issue summary: View changes

Just found this older request for this reasonable feature. Marking the newer request as a duplicate.
#2315509: Webform conditionals not working with the grid field type

danchadwick’s picture

Reading the related issue carefully, there are really two related but distinct requests:

1) Use grid question as a source component in a rule test. (e.g. Questions 4 is Yes.)

2) Act on only one grid question as an action of the conditional. (e.g. Hide question 4.)

I'm still leaving the other question closed as a duplicate because I think both features should be addressed at the same time.

danchadwick’s picture

Status: Active » Closed (won't fix)

Absent a patch from someone else, or funding for this feature, I don't see this happening anytime soon. Selecting the grid question requires substantial reworking of both the UI for specifying the conditional rule and/or action, as well as changes to the jQuery that implements conditionals, the conditional parsing (topological sort and analysis) (because more than once conditional can now change a grid), and server-side conditional engine. It would be a fair bit of work.

danchadwick’s picture

StatusFileSize
new32.83 KB

The related issue (advanced grid component) is probably the way forward for this, but I thought I'd record my partial implementation of conditionals. I stopped part way through. It is particularly awkward to act on questions within a grid via conditional actions.

THIS PATCH IS NOT FUNCTIONAL. There is a lot left to do, and I don't expect to go in this direction, given the related issue's solution.