# From fields to forms

**URL:** https://discourse.elm-lang.org/t/from-fields-to-forms/10315
**Category:** Show and Tell
**Created:** [July 10, 2025, 12:28pm UTC](https://discourse.elm-lang.org/t/from-fields-to-forms/10315 "2025-07-10T12:28:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)
#### Post date: [July 10, 2025, 12:28pm UTC](https://discourse.elm-lang.org/t/from-fields-to-forms/10315/1 "2025-07-10T12:28:46Z")

</div>

In this [article](https://dev.to/dwayne/diary-of-an-elm-developer-from-fields-to-forms-5aab), I describe a beautiful form abstraction I discovered while playing with my form fields.

## Request for feedback

I’d be happy to receive stories or examples of forms you found quite challenging to build with the current form abstractions that the Elm ecosystem provides.

What do you think is difficult about forms that I may have overlooked?

---

<div class="post-metadata">

### Author: ![wolfadex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/wolfadex/32/2461_2.png) [@wolfadex](https://discourse.elm-lang.org/u/wolfadex)
#### Post date: [July 10, 2025, 3:14pm UTC](https://discourse.elm-lang.org/t/from-fields-to-forms/10315/2 "2025-07-10T15:14:21Z")

</div>

I’ve chatted a fair amount with @edkelly303 about [elm-any-type-forms 8.1.0](https://package.elm-lang.org/packages/edkelly303/elm-any-type-forms/latest), and something I asked him once was

> whether it is possible for the state of a field to depend on the state of another field.

I don’t really remember asking, but I think I know the context. When I worked at Northwestern Mutual I worked on a large, complex form that had a crazy group of fields. It was 2 currency inputs and a slider. When you edited any 1 of the 3 fields, the other 2 would also update. It was about having the 2 currency fields equal a total and the slider match up as well.

That’s up there with some of the most challenging form stuff I’ve encountered.

---

<div class="post-metadata">

### Author: ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)
#### Post date: [July 10, 2025, 7:12pm UTC](https://discourse.elm-lang.org/t/from-fields-to-forms/10315/3 "2025-07-10T19:12:47Z")

</div>

Thanks for the example. My approach would handle that requirement in `setters`.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [July 20, 2025, 7:13pm UTC](https://discourse.elm-lang.org/t/from-fields-to-forms/10315/4 "2025-07-20T19:13:46Z")

</div>

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