# Add dropdown to the "Person reference editor" page the same as for Attributes

**URL:** <https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097>\
**Category:** Ideas\
**Tags:** hacks\
**Created:** [December 21, 2022, 8:03am UTC](https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097 "2022-12-21T08:03:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [December 21, 2022, 8:03am UTC](https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097/1 "2022-12-21T08:03:54Z")

</div>

I have to add hundreds of godfathers/godmothers/god sons/god daughters/witnesses. Each time I have type the same phrases when add new associations. Is it possible make here dropdown with some default/custom list (like in attributes)?

 ![Screenshot 2022-12-20 at 20.55.30](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/a0a804c74ba7b269b4cfcee40e0dff5ef3f73285.jpeg)

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [December 21, 2022, 8:05am UTC](https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097/2 "2022-12-21T08:05:08Z")

</div>

The answer is here: [Four questions-ideas (Associations, tags, hotkeys, copy'n'paste support) - maybe it is possible to fix? - #4 by emyoulation](https://gramps.discourse.group/t/four-questions-ideas-associations-tags-hotkeys-copynpaste-support-maybe-it-is-possible-to-fix/3096/4)

---

<div class="post-metadata">

**Author:** ![GaryGriffin](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/garygriffin/32/6525_2.png) [@GaryGriffin](https://gramps.discourse.group/u/GaryGriffin)\
**Post date:** [December 23, 2022, 10:27pm UTC](https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097/3 "2022-12-23T22:27:50Z")

</div>

If you really want to hack the code (insert appropriate warnings and need for a backup before proceeding),

Edit the file personrefembedlist.py . Below is a diff for changing Godfather to Godparent:

```python
diff -c personrefembedlist.*
*** personrefembedlist.orig
--- personrefembedlist.py	
***************
 ***135,141****
          from .. import EditPersonRef
          try:
              ref = PersonRef()
! ref.rel = _('Godfather')
              EditPersonRef(
                  self.dbstate, self.uistate, self.track,
                  ref, self.add_callback)
--- 135,141 ----
          from .. import EditPersonRef
          try:
              ref = PersonRef()
! ref.rel = _('Godparent')
              EditPersonRef(
                  self.dbstate, self.uistate, self.track,
                  ref, self.add_callback)

```

on a Mac, the directory for this file is

> /Applications/Gramps.app/Contents/Resources/lib/python3.6/site-packages/gramps/gui/editors/displaytabs

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [January 22, 2023, 10:27pm UTC](https://gramps.discourse.group/t/add-dropdown-to-the-person-reference-editor-page-the-same-as-for-attributes/3097/4 "2023-01-22T22:27:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
