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?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | webform-grid_conditionals-1627662-6.patch | 32.83 KB | danchadwick |
Comments
Comment #1
quicksketchCurrently 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.
Comment #2
dsrikanth commentedWould love to hear about any progress on this one.
Comment #3
danchadwick commentedJust 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
Comment #4
danchadwick commentedReading 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.
Comment #5
danchadwick commentedAbsent 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.
Comment #6
danchadwick commentedThe 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.