Closed (fixed)
Project:
Address field for CCK
Version:
5.x-2.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2008 at 15:10 UTC
Updated:
3 Apr 2008 at 21:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
davidneedhamComment #2
rconstantine commentedOverride the theme functions. This is standard Drupal stuff. Anyway, I think maybe CCK itself might be adding the item you're talking about. Screen shots help.
Comment #3
davidneedhamThanks for your reply. Basically, I looked to this module for a zip code field - as I was not able to get the standard cck field to work how I wanted it to. Unfortunately using this module means that the form looks like the zip code field is in a group (see screenshot). Any ideas?
Comment #4
rconstantine commentedOh, I see. Well, first, you mean "fieldset", not "group". Second, that is CCK doing that IIRC, not this module. Third, you should be able to write a little JavaScript which uses DOM to remove that item. No - wait... You should be able to use regular old CSS to target the item and hide it, then show its children (or something like that). Anyway, those are a couple of options, but you are basically using this module in a way not intended or supported.
Good luck.
Comment #5
davidneedhamDo you have any idea how the CSS would look? I tried hiding the fieldset but forcing it to show the actual field, but that didn't work.
I'm pretty new to drupal and especially CCK. Instead of using this module, is there a way to make a cck field that "must be X digits"? I originally tried the integer field type, but it only let me set the min and max number - not digits. I also tried a normal text box, but was only able to set the maxlength.
I appreciate your help!
Comment #6
davidneedhamI figured it out. Heres the code:
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.