I added a phone number filed and a simple text field (dropdown selection) to a cck 3 multigroup field and I get this error...

"999 999 9999" is not a valid North American phone number, it should be 10 digits number like "999 999 9999"

Clearly the numbers are identical so it should validate.

If I turn off validation it will save however the phone number does not display on the node.

I am trying to solve the phone number type issue here. If there is a better way please do tell.

Comments

CraigBertrand’s picture

Version: 6.x-2.9 » 6.x-2.18

oops selected wrong version

CraigBertrand’s picture

Project: Phone » Phone Number
Version: 6.x-2.18 » 6.x-1.0

Okay this is getting embarrassing

CraigBertrand’s picture

Project: Phone Number » Content Construction Kit (CCK)
Version: 6.x-1.0 » 6.x-3.0-alpha3
Component: Code » content_multigroup.module

Okay upon further testing I think this is a cck bug. I tried to make my own phone number field using just the text and integer field types and doing validation by the number of digits in the integer field and got the same error.

I created:

one field called type (text field) (select list)
3 fields for the three parts of a standard US/Canada number (integer) (text field)

On each of the integer fields I set min and max values of 3/3/4 respectively to correspond to the phone number.

Here is the error message from that config:

Area Code: the value may be no larger than 3.
First Three: the value may be no larger than 3.
Last Four: the value may be no larger than 4.

It seems that multigroup cannot validate input?