Grid components should allow unique validation. This would mean that any given option can only be used by one question. Use case: ranking. Questions would be the things to be ranked, options would be numbers. Unique validation prevents items from sharing the same rank.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | unique-formbuilder-webform.png | 66.27 KB | Chipie |
| #3 | Screen Shot 2013-04-27 at 18.09.35.png | 37.49 KB | Chipie |
| #2 | webform-grid-unique-1662904-2.patch | 2 KB | David_Rothstein |
Comments
Comment #1
quicksketchThanks Liam, sounds like a good feature request to me.
Comment #2
David_Rothstein commentedHere is a patch.
I'm using "unique" as the machine key for this new validation option, even though it behaves quite differently from the "unique" validation already in use for other components. I think that's OK though.
Comment #3
Chipie commentedThanks for the patch. I works
My Problem is, that I'm using Form Builder to create forms.
The "unique" option is not shown there.
Comment #4
David_Rothstein commented@Chipie, check out #1405108: Add support for Webform's "unique" validation - the patch I posted there (for Form Builder) is meant to go along with this one.
Comment #5
Chipie commentedThank you for the reply. I have applied the patch, but I still can't see the option in form builder?
In which tab should it be located? In validation?
Comment #6
David_Rothstein commentedYes, under Validation.
You need to apply both patches in that issue (#2 and #7), since the first one wasn't committed yet.
Comment #7
Chipie commentedI see. Now it works. Thank you very much for your support.
Comment #8
quicksketchThanks guys! In the future, @Chipie feel free to move the issue to "Reviewed and Tested by the Community", that would have gotten my attention sooner. Committed to the 7.x-4.x branch. Great patch.
Comment #9
liam morlandThanks very much, everyone.