# Form elements, how to pre-fill fields?

**URL:** https://discourse.nodered.org/t/form-elements-how-to-pre-fill-fields/86670
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [22 March 2024 16:17 UTC](https://discourse.nodered.org/t/form-elements-how-to-pre-fill-fields/86670 "2024-03-22T16:17:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![network\_potato](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@network\_potato](https://discourse.nodered.org/u/network_potato)
#### Post date: [22 March 2024 16:17 UTC](https://discourse.nodered.org/t/form-elements-how-to-pre-fill-fields/86670/1 "2024-03-22T16:17:53Z")

</div>

Let's say i have a `ui-text-input` and want to pre-fill it with the content of `msg.exampleText` when the page loads.

How do I do that?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 March 2024 16:30 UTC](https://discourse.nodered.org/t/form-elements-how-to-pre-fill-fields/86670/2 "2024-03-22T16:30:05Z")

</div>

At the moment you can't.

There is an [open issue](https://github.com/FlowFuse/node-red-dashboard/issues/363) for this.

Edit: The title says Form, but you also reference ui-text-input. Which is it? for ui-text-input you can pass the text in msg.payload

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 April 2024 16:30 UTC](https://discourse.nodered.org/t/form-elements-how-to-pre-fill-fields/86670/3 "2024-04-21T16:30:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
