Hi

I'm finding that my fivestar voting form input has a different id than the matching label's "for" field. Here's the code for the label:

<label for="edit-vote">Your rating: </label>
and the matching input/select field...
<select name="vote" class="form-select" id="edit-vote-0" >....
For some reason Drupal has suffixed the form id with -0, even though this is the only voting widget on the page.

Does anyone know how this can be fixed?

Thanks
Dan

Comments

quicksketch’s picture

Category: support » bug

Thanks, this looks like a bug to me. The -0, -1, -2, etc. is now tacked on to the IDs to prevent duplicates IDs on the same page. I'll see what I can do about making the <label for=""> point to it correctly.

quicksketch’s picture

Version: 5.x-1.11-beta3 » 5.x-1.x-dev
Status: Active » Fixed

I added an ID to the label itself so that it now matches the select field. Thanks for reporting.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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