# Discourse toolkit to render forms

**URL:** https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439
**Category:** Developer Guides
**Created:** [September 13, 2024, 9:20pm UTC](https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439 "2024-09-13T21:20:27Z")
**Posts on this page:** 1
**Showing post:** 32

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 13, 2025, 10:31am UTC](https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439/32 "2025-05-13T10:31:13Z")

</div>

> [@david](#):
>
> but I think people get around it by using the keyboard shortcuts or quick edit.

Ah. Makes sense. Also, often rules don’t apply to admins.

> [@david](#):
>
> We have this at the bottom of every doc

Wait. What?

> [@system](#):
>
> This document is version controlled - suggest changes [on github](https://github.com/discourse/discourse-developer-docs/blob/main/docs/03-code-internals/21-form-kit.md).

Oh. Oops. It is in tiny letters, but now that I see it, I to remember seeing it before. 🤷

I’ve made some more progress this time. I’m doing a bunch of fairly custom stuff (like I need to trigger some text that’s displayed when entering a field) that may keep me from being able to use it.

Any idea how I can trigger a function when entering a field? (Use case, when you enter the Digital Ocean API key field, I have text show up that describes how to get the API key).

EDIT: Why, yes. Dear [https://ask.discourse.com/](https://ask.discourse.com/) was able to tell me! It’s painfully obvious once you know. 🤷

```plaintext
import { on } from "@ember/modifier";
...
  @action
  hostnameClicked(event) {
    this.setHelpText(i18n("pfaffmanager.help.hostname"));
  }
...
            <field.Input @type="text" {{on "click" this.hostnameClicked}} />

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439)._
