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.

CommentFileSizeAuthor
terms.txt678 bytesmy-family

Comments

jordojuice’s picture

Priority: Critical » Major
Status: Active » Fixed

Good 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.

jordojuice’s picture

Priority: Major » Normal

This 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.

jordojuice’s picture

Status: Fixed » Closed (fixed)