# Showing a field based on the selected panel language?

**URL:** <https://forum.getkirby.com/t/showing-a-field-based-on-the-selected-panel-language/34795>\
**Category:** Questions\
**Tags:** v5\
**Created:** [September 30, 2025, 11:28am UTC](https://forum.getkirby.com/t/showing-a-field-based-on-the-selected-panel-language/34795 "2025-09-30T11:28:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zippe](https://avatars.discourse-cdn.com/v4/letter/z/c5a1d2/32.png) [@zippe](https://forum.getkirby.com/u/zippe)\
**Post date:** [September 30, 2025, 11:28am UTC](https://forum.getkirby.com/t/showing-a-field-based-on-the-selected-panel-language/34795/1 "2025-09-30T11:28:21Z")

</div>

I am almost loosing my mind 🙂

I want to show a info field to my editors. But only if they edit content in other than my default lang. How could I archive that?

creating a hidden field with a value? how? using a page model? problem is, that kirby.language.code or a page model I created (lets call it page.isDefaultLang) does not work, the value becomes the key.. so it is comparing “de” with “page.isDefaultLang” instead of “de” with “de” …

Any hints would be great!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 30, 2025, 12:16pm UTC](https://forum.getkirby.com/t/showing-a-field-based-on-the-selected-panel-language/34795/2 "2025-09-30T12:16:07Z")

</div>

Unfortunately, this is currently not easily possible, at least not if you have more than 1 non-default language. The `when` property currently only supports key =\> value pairs, where the key is a fieldname and the value a string or a boolean.

If you have only one non-default language, you could store the non-default language key in a hidden field when the translation is created (page.update:after hook), then check for the value of this field in then when condition.

There used to be a plugin called WhenQuery, but I don’t think it is compatible with Kirby 5.
