Closed (works as designed)
Project:
Contact form blocks
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2010 at 15:48 UTC
Updated:
8 Jun 2012 at 13:26 UTC
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
Comment #1
fuerst commentedThe 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.
Comment #2
fuerst commentedSince there is no real ID name conflict I close this issue.
Comment #3
the_g_bomb commentedI 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.