This issue occurs on a site that has a contact block & logon block on the same page. The two blocks have a name space conflict with the following common fields:

id="edit-name-wrapper"
id="edit-name"
id="edit-submit"

Would it be possible to prefix the contact block field id's with "contact" or some other unique string?

Thanks,

Chaim Melamed

Comments

fuerst’s picture

Category: bug » feature
Status: Active » Postponed

The ID's automatically get numbers appended to avoid conflicts. That's not optimal because you can not control it. As long as this module does not change it you may use the module http://drupal.org/project/block_class as a workaround.

fuerst’s picture

Status: Postponed » Closed (works as designed)

Since there is no real ID name conflict I close this issue.

the_g_bomb’s picture

I am experiencing some issues with this as well. If there was a way to control this it would be better. For example, I have some javascript that autofills the text fields with default text and while I can target the contact form block by using the block Id, which is fine to to target the name field I need, but I need all situations covered, ie, when someone is not logged in I need:
$(#blockId #edit-name').val('your name');
but I also need:
$(#blockId #edit-name--2').val('your name');
for when they aren't logged in and the login block appears.