Not sure if this would be the default usage or not but don't really get why you would want the fields description text listed with the field. Perhaps people have a different use that mine.

I use a table view with a couple editable fields in it and the description text for the field is listed with the field (checkbox) making the field width about the width of the screen. Not sure how you'd make this an option.. i guess would just be a new widget type.. hmm.. maybe

Comments

andreiashu’s picture

Hi,

I think you are right... I also found myself using CSS to hide those description divs.
I would like to give it more thought though and eventually hear more opinions about this.

Thanks,
Andrei

andreiashu’s picture

Version: 6.x-2.0 » 6.x-3.x-dev

If it's going to go in, it will go into 6--3 branch.

liquidcms’s picture

ok, thanks.. i started on a new formatter for this.. but didn't get too far :( so for nowi just used a form_alter to remove the desc text.

wizonesolutions’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev

Bumping this to 7 since it's been some time. I'm interested in this feature. Having to use CSS to hide stuff is sort of boring. I'd also like auto-saving to be possible on more field types, perhaps as an option. I might hide some of the save buttons and write some JS to auto-submit, and it seems like the module should do this. In fact, I think it used to in D6.

wizonesolutions’s picture

Whoa. I already logged this issue. I'm especially interested in it now that I'm using Editable Fields in Cash Flow. I don't really feel like releasing a theme or another submodule just to do this, but I probably will just bundle my own CSS as soon as someone complains.

Still would prefer to have this in this module, but I probably can't justify the time required to make it happen myself :(

bkat’s picture

Issue summary: View changes

On drupal 6, I solved this by adding a form_alter hook that does something like this:

 if ($form_id == 'editablefields_form') {
        unset($form['field_unationallist']['#description']);
        unset($form['field_antiharassment']['#description']);
        unset($form['field_ulw']['#description']);
    }

On D7, it looks like the form management has changed and I'm getting one form for the view and the form_id is unique to the view.

I also use the form alter on D6, to modify the displayed text in on/off checkboxes, Instead of displaying

"I agree to the Liability Waiver" , I change it to say "Agreed" by doing

        if (isset($form['field_ulw'])) {
            $form['#field_info']['field_ulw']['allowed_values'] =
                "0|Agreed\n1|Agreed";
        }
BrightBold’s picture

It would be really useful to have an option whether to display the field help or not. As the OP mentions, in a table they really mess things up.