# TypeError when submitting a flag with custom content (require\_message flags)

**URL:** https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133
**Category:** Bug
**Tags:** fixed
**Created:** [May 16, 2026, 2:45am UTC](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133 "2026-05-16T02:45:08Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 19, 2026, 3:19am UTC](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133/4 "2026-05-19T03:19:36Z")

</div>

> [@cuo\_wu](#):
>
> **Steps to Reproduce**
> 
> 1. Visit any topic post
> 2. Click the flag button to open the flag modal
> 3. Select a flag type that requires a message (e.g. “Something Else” / `notify_moderators`, or any custom flag created in Admin → Flags with “Require message” enabled)
> 4. Type a message in the text area (long enough to pass the minimum length)
> 5. Click the submit button

I tried to reproduce locally but am unsuccessful. Are you able to reproduce this if you enable [safe-mode](https://meta.discourse.org/t/using-safe-mode-to-troubleshoot-issues-with-themes-and-plugins/53504)?

---

_[View the full topic](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133)._
