# Using validate with partial params

**URL:** <https://forum.elixirforum.com/t/using-validate-with-partial-params/71334>\
**Category:** Questions\
**Tags:** ash, ash-phoenix, ash-phoenix-form\
**Created:** [June 18, 2025, 11:43am UTC](https://forum.elixirforum.com/t/using-validate-with-partial-params/71334 "2025-06-18T11:43:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zachdaniel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/32/31980_2.png) [@zachdaniel](https://forum.elixirforum.com/u/zachdaniel)\
**Post date:** [June 18, 2025, 2:49pm UTC](https://forum.elixirforum.com/t/using-validate-with-partial-params/71334/6 "2025-06-18T14:49:34Z")

</div>

Yeah, so the problem effectively is that there is a sort of bidirectional communication here. The underlying form data structure doesn’t know what fields you are or are not going to include in the UI, those fields get their defaults from the form, and then on type the client sends it back to us. Until then, we don’t have a full picture of what params looks like. It isn’t ideal.

You could likely do this with a bit of js on the button.

```elixir
phx-click={JS.dispatch("validate", to: "#your-form") |> JS.push("time-selected", value: %{time: time})}

```

EDIT: `"validate"` probably wouldn’t be what you want, you’d want to trigger some input as if it was typed into potentially, or find some way to trigger the phx-change hook etc. I’m sure it can be done but I can’t recall how 😆

---

_[View the full topic](https://forum.elixirforum.com/t/using-validate-with-partial-params/71334)._
