By geneatwell on
I have a CCK field that is an integer value. I have defined the minimum to be 137812 and a maximum of 160242. (Not sure I would even need to do this if I could get the allowed values list to work)
What I want to do is between the minimum and the maximum carve out other "allowed values".
Using the allowed values listing, I would need to add nearly 3000 values if I were to list each individually.
Is there any way to use <, >, <=, etc. to allow, for example, 137812<=137835, 138551<= 139223, etc and not have to code all 3000 unique cases?
I've not had any luck using 0|137812<137836, 0|137812-137835, or other combinations using the key|label. What am I missing?
Any ideas?
Sorry, I do not know PHP.
Comments
Oops
I am using Drupal 6.15.
Another Tack.
Can anybody drop a line or 2 of php that will show me how to test whether the value lies between 137812 and 137836. Will hack at it for a while. Not having any luck using 137812<$field_buno<=137836 or $field_buno>137812 && $field_buno<=137836
Nevermind. We just used all
Nevermind. We just used all 3000 numbers and it's working so far.