If a content type has a text cck field of type "Single On/Off Checkbox" shouldn't it validate whether the "on" value is unique? This way all other nodes can have the "off" value and only one node can have the on?

Comments

Anonymous’s picture

OK.. figured out another way to do this. Instead of using a "Text" Single On/Off Checkbox, use an "Integer" Single On/Off Checkbox with values as so:

0|No
1|Yes

If the checkbox is checked.. i.e. Yes -> Value = 1 .. then the field value will not allowed to be entered as Yes on another node. However, if the checkbox is not checked.. i.e. value -> 0.. Other nodes will be allowed to have that same value of 0.

deltaag’s picture

Thanks for the reply, answered my question.

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks