Currently whenever I make this field no matter what I do it places it within a group with the name of the field. Is it possible to make that go away, or at least an option somewhere? As it is, I can't get it to look right visually because of the box around my address options. Is there something I'm missing? Thanks in advance!

CommentFileSizeAuthor
#3 Picture 1.png12.93 KBdavidneedham

Comments

davidneedham’s picture

Title: Automatic "Grouping" - go away plz? » Automatic "Grouping"
rconstantine’s picture

Category: feature » support
Status: Active » Fixed

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

davidneedham’s picture

StatusFileSize
new12.93 KB

Thanks 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?

rconstantine’s picture

Oh, 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.

davidneedham’s picture

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

.cck-address-fieldset{
  display: none;
}

.cck-address-zip{
  display: block !important;
}

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!

davidneedham’s picture

I figured it out. Heres the code:

.cck-address-fieldset{
  border: none !important;
  margin:0 auto !important;
  padding:0 !important;
}

.cck-address-fieldset legend{
  display:none;
  
}
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.