Title: Adding Unique ID&#039;s to custom fields DIVs
Last modified: August 22, 2016

---

# Adding Unique ID's to custom fields DIVs

 *  [encorewebplus](https://wordpress.org/support/users/encorewebplus/)
 * (@encorewebplus)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-unique-ids-to-custom-fields-divs/)
 * Hi,
 * I am attempting to set up a conditional Country > State/Province > City drop 
   down system in my registration page. I am using xprofile to set up the multiple
   dropdown fields. My plan is to create drop downs and then use jQuery to hide/
   show drop down fields based on selection.
 * Great. It works in theory, the only problem Ive run into now is that, when I 
   create a new custom field the div has no unique ID, that means every single field
   i create has the <div class=”editfield”> and I cant distinguish between the divs,
   therefor I cant hide them individually.
 * Where is it in the core code, that these registration html files live. I would
   gladly modify the core code to add in unique ID’s if possible.
 * Right now: I am able to hide the individual dropdown forms (based on their unique“
   field_47091” IDs, however each custom field is wrapped in this DIV. So even though
   I can hide the dropdown, I am unable to hide the label and the description because
   they are part of this DIV.
 * Any help appreciated.
 * Thanks.
 * [https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [encorewebplus](https://wordpress.org/support/users/encorewebplus/)
 * (@encorewebplus)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-unique-ids-to-custom-fields-divs/#post-5545606)
 * Update:
 * Still having an issue, but getting closer I think.
 * Ive gone into edit.php and registration.php files both located in the buddypress
   themes folders, Ive added id=”<?php bp_the_profile_field_input_name(); ?>” to
   the div that is wrapped around the custom fields section. However, for some reason
   this neither of these files are modifying the registration page on my site. Ive
   tried rename editfield, to editfield10 just to test to see if the updates are
   showing in the code. No luck.
 * Ive looked in my themes folder to see if there was a registration template there,
   nothing.
 * Where else could this file be?
 * Thanks.
 *  Thread Starter [encorewebplus](https://wordpress.org/support/users/encorewebplus/)
 * (@encorewebplus)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/adding-unique-ids-to-custom-fields-divs/#post-5545609)
 * **SOLVED:**
 * The template file was located in the bp-legacy folder. For anyone who may have
   a similar problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Unique ID's to custom fields DIVs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [encorewebplus](https://wordpress.org/support/users/encorewebplus/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/adding-unique-ids-to-custom-fields-divs/#post-5545609)
 * Status: not resolved