# 活动自定义字段只能使用小写字母

**URL:** <https://meta.discourse.org/t/event-custom-fields-can-only-be-lowercase/405386>\
**Category:** Bug\
**Tags:** events, fixed\
**Created:** [2026年六月16日 08:08 UTC](https://meta.discourse.org/t/event-custom-fields-can-only-be-lowercase/405386 "2026-06-16T08:08:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2026年六月16日 08:08 UTC](https://meta.discourse.org/t/event-custom-fields-can-only-be-lowercase/405386/1 "2026-06-16T08:08:48Z")

</div>

我在事件自定义字段中遇到了两个问题

### 包含连字符或句点的字段（如 `field-aa` 或 `field.aa`）会导致高级设置对话框崩溃，报错如下

```plaintext
Uncaught (in promise) Error: @name can't include `.` or `-`.
    get name field-data.gjs:249
    get normalizedName field-data.gjs:260
    Ember 38

```

### 只有完全小写或包含下划线的字段才会被持久化保存

- 创建字段 field\_aa、fieldbb、field\_CC 和 fieldDD
- 你会发现只有 field\_aa 和 fieldbb 被持久化保存了。看起来字段名也不能以下划线开头。

---

_[View the full topic](https://meta.discourse.org/t/event-custom-fields-can-only-be-lowercase/405386)._
