---
title: "Comment by Matias H. Leidemer on \"Turbo Frame Search Filters\" | Hashnode"
description: "Hey there, Avi; thank you for sharing this post! I was trying it on my machine, and as it turns out, we don't even need to create a custom stimulus controller."
url: "https://hashnode.com/posts/turbo-frame-search-filters/65b27372481a74d4adc504b3/comment/65cbd3e6d453171b80e4486a"
---

[Discussion](https://hashnode.com/posts/turbo-frame-search-filters/65b27372481a74d4adc504b3)

Comment [Turbo Frame Search Filters](https://hashnode.com/posts/turbo-frame-search-filters/65b27372481a74d4adc504b3)

[Matias H. Leidemer](https://hashnode.com/@matiasleidemer)

[Feb 13, 2024](https://hashnode.com/posts/turbo-frame-search-filters/65b27372481a74d4adc504b3/comment/65cbd3e6d453171b80e4486a)

Hey there, Avi; thank you for sharing this post!

I was trying it on my machine, and as it turns out, we don't even need to create a custom stimulus controller.

All you need to do is set the form's data-turbo-frame="jobs" attribute and, instead of using the TurboVisit + FormData combo, call the form's requestSubmit() function.

```
<form data-turbo-frame="jobs" etc>
  <%= select_tag :category, etc, onchange: "this.form.requestSubmit()" %>
</form>
```

More info:

-   [turbo.hotwired.dev/handbook/drive](https://turbo.hotwired.dev/handbook/drive#form-submissions)
-   [developer.mozilla.org/en-US/docs/Web/API/HTMLForm…](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)

Let me know what you think, cheers!

[Avi Flombaum](https://hashnode.com/@avinyc)

[Feb 13, 2024](https://hashnode.com/posts/turbo-frame-search-filters/65b27372481a74d4adc504b3/comment/65cbd3e6d453171b80e4486a#reply-65cbd795fb1288821e6a8bc7)

Ya, you could bind the onchange event to each form field to then use requestSubmit or just wrap it all in a Stimulus controller. Thanks for adding to the article! <3
