# Custom Fields not working in Spanish

**URL:** <https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364>\
**Category:** Developers\
**Created:** [January 28, 2022, 1:47pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364 "2022-01-28T13:47:20Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 28, 2022, 1:47pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/1 "2022-01-28T13:47:20Z")

</div>

Hello there!

I am dealing with a problem with Custom Fields in Spanish language. I have added 5 extra custom fields to be shown for parents/staff only in the “User Manage” edit form. In English is working just fine, placing the new custom fields inside the “Background information” section.

But in Spanish, for some reason, it’s placing them in the last section “MISCELLANEOUS” and even adding a new header for “Background information”. All this only happening in Spanish language. Check out the pictures:

Pictures:  
[https://ibb.co/TkDsghM](https://ibb.co/TkDsghM)  
[https://ibb.co/QYw5bpn](https://ibb.co/QYw5bpn)

Any ideas on how to repair this?  
Manuel Ruiz

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 28, 2022, 1:55pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/2 "2022-01-28T13:55:50Z")

</div>

I found the problem!! I added the Custom Fields using the system in English, and in the DB the custom fields were being added with the header in English, so when we changed the language, it was not finding the right header.

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 28, 2022, 2:22pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/3 "2022-01-28T14:22:27Z")

</div>

No… Another error now… When using Gibbon in Spanish and trying trying re-add the custom fields when I click on the “User” context", the Heading dropdown only shows “Personalizado” o “[Custom]”

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 29, 2022, 5:39am UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/4 "2022-01-29T05:39:42Z")

</div>

Doubled checked again installing testing Gibbon on a Linux OS. The heading dropdown in Custom Fields form is not working in any other language except English, (tried Spanish and French).

[https://ibb.co/3rkNnN4](https://ibb.co/3rkNnN4)

Any ideas?

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 30, 2022, 3:43am UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/5 "2022-01-30T03:43:21Z")

</div>

foreach ($headings[$context] as $key =\> $value) {

// $contextHeadings[Basic\_Information\_User] = Información básica  
$contextHeadings[$key . ‘\_’ . $context] = $value;

// $group[Información básica\_User] = User  
$group[$value . ‘\_’ . $context] = $context;  
}

This is what code is returning when in Spanish language and here is part of the bug that is making Custom Fields not work in other languages (tried in Spanish and French, so far).

This loop fills the dropdown with contextHeadings before Custom.

The bug is also in the “edit” Custom fields as well.

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [January 30, 2022, 11:32pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/6 "2022-01-30T23:32:00Z")

</div>

Also checked the softaculous demo and it has the same problem.

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [February 1, 2022, 1:36pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/7 "2022-02-01T13:36:53Z")

</div>

Hi Manuel, thanks for bringing this to our attention. I’ve made a note to look into this in depth, we’re on our Chinese New Year holiday this week in HK and will be back to work next week. In the meantime, if you do manage to find a fix on your end, please do share it with us and we’d be happy to add it to the core. Thanks!

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [February 1, 2022, 2:38pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/8 "2022-02-01T14:38:43Z")

</div>

Thank you, Sandra! I will be checking carefully the code, and let you know what I have come across.

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [February 2, 2022, 12:40pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/9 "2022-02-02T12:40:15Z")

</div>

Hello Sandra, I recorded a video for you: I have partially found a fix for the Custom fields issue in other languages.

[https://youtu.be/deUa3NUZL0U](https://youtu.be/deUa3NUZL0U)

Let me know…

As you watch, please remember that English is my second language.

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [February 3, 2022, 6:01pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/10 "2022-02-03T18:01:34Z")

</div>

Sandra, I was able to find a solution.

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [February 3, 2022, 6:04pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/11 "2022-02-03T18:04:51Z")

</div>

How can I send you guys my suggestions?

---

<div class="post-metadata">

**Author:** ![ross](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/ross/32/8_2.png) [@ross](https://ask.gibbonedu.org/u/ross)\
**Post date:** [February 4, 2022, 8:29am UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/12 "2022-02-04T08:29:38Z")

</div>

Hi Manuel,

Sounds like you been busy, and successful! You can contribute changes to our v23.0.01 branch on GitHub:

[https://github.com/GibbonEdu/core](https://github.com/GibbonEdu/core)

Our Developer Workflow docs should help:

[https://docs.gibbonedu.org/developers/getting-started/developer-workflow/](https://docs.gibbonedu.org/developers/getting-started/developer-workflow/)

Cheers,

Ross

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [February 7, 2022, 2:43am UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/13 "2022-02-07T02:43:21Z")

</div>

Hi Manuel, thank you for helping to find a solution and sharing your clear and informative video about it 😃 I’ve created a PR to fix this issue, which includes fixes to the heading dropdown as suggested in your video, as well as a fix to the heading system in the Form classes, which now properly handles heading translation.

You can find the fix here and apply it to your system: [https://github.com/GibbonEdu/core/pull/1604](https://github.com/GibbonEdu/core/pull/1604) We will merge this into the v23.0.01 development branch and release it along with some other fixes in the coming weeks. Thanks!

---

<div class="post-metadata">

**Author:** ![manuelruizp84](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@manuelruizp84](https://ask.gibbonedu.org/u/manuelruizp84)\
**Post date:** [February 8, 2022, 6:43pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/14 "2022-02-08T18:43:51Z")

</div>

Wow!!! Loving this opportunity to contribute. The IT Committee of our school is going to get together soon and I will be presenting Gibbon as our first step toward having a centralized School Management system… Really excited!

---

<div class="post-metadata">

**Author:** ![ross](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/ross/32/8_2.png) [@ross](https://ask.gibbonedu.org/u/ross)\
**Post date:** [February 8, 2022, 11:52pm UTC](https://ask.gibbonedu.org/t/custom-fields-not-working-in-spanish/3364/15 "2022-02-08T23:52:38Z")

</div>

Hi Manuel, we love your enthusiasm and excitement for Gibbon : ) It is contagious!
