When using vertical tabs, the suggestion in the content complete block does not highlight the relevant field on click.

To give an example, we have 5 vertical tabs and the item "Workplan" is on tab 3. In the block states:

Filling out Workplan will bring Application to 23%.

but clicking on "Workplan" just refreshes the page rather than highlighting the field.

Comments

adshill’s picture

For info - I had a similar issue when using the "Tabs" module in Drupal 6 - I'm wondering if these are linked somehow - it could be an issue with field group rather than content complete. I am looking deeper into this but would like to leave this open till we can work out where the issue lies if that is ok.

The previous post last year: #896612: Strange output when using fieldgroup tabs

fire-wolf’s picture

I solved this by uncommenting two lines already existing in content_complete.module. These are on line 208 and 209. First one sets error message for page and other sets class for field. Therefore there is no need of previous line which sets warning message, on line 206. Comment it!
With these changes you get div full of error icons. So you need to add another class. Change the line 209 and add second class:

$form[$fieldname]['#attributes']['class'][] = 'error errorRight';

and add new class .errorRight somewhere in your theme or content_complete.css:

.form-wrapper div.errorRight {
  background-repeat: no-repeat;
  background-position: right top;
}

Now this error mark stands on right top corner and only one.

adshill’s picture

Status: Active » Reviewed & tested by the community

This works for me - pvhee is it the right approach? Can we commit or does it need work? Also its been a while since a new version, is there any update on what is blocking the next beta or a RC?

Thanks a lot! Adam.

okeedoak’s picture

#2 works for me but as a feature request it would be better if the page could auto scroll downward to show the field.

abu-zakham’s picture

Hello, I've create a patch for comment #2
Thanks @firewolf