Closed (fixed)
Project:
Rules Forms Support
Version:
7.x-1.x-dev
Component:
Rules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2011 at 18:52 UTC
Updated:
6 Feb 2012 at 12:52 UTC
First, thank you for this module. It is very helpful.
I have the following problem: the validation for boolean field type does not work if it uses on/off checkbox. (The same works for checkboxes/radio buttons, but it is not acceptable in my case). I tried the form ID as "field_offer_is_confirm[und]" or "field_offer_is_confirm" but the result is the same.
The name of the field is "field_offer_is_confirm". (the purpose is to confirm agreement with terms and conditions, without this, a user should not be able to save the content).
Exported rule attached.
(It is for latest -dev release. However, for 7.x-1.0-beta6 I obtained similar result).
Thank you in advance for any help.
Comments
Comment #1
jordojuice commentedGood catch. I can see how this is not working. I'll work up a fix for this and hopefully get this last bug fix into the new release.
Comment #2
jordojuice commentedThis should be fixed in the latest release. I rewrote the condition handling to work with the new code. It provides a different interface depending on the type of element being validated. For instance, if you're validating a checkbox then it will give you a checkbox on which to indicate the value you're looking for.
Comment #3
jordojuice commented