# Form does not update turbo-frame

**URL:** <https://discuss.hotwired.dev/t/form-does-not-update-turbo-frame/2531>\
**Category:** General\
**Created:** [March 17, 2021, 2:21pm UTC](https://discuss.hotwired.dev/t/form-does-not-update-turbo-frame/2531 "2021-03-17T14:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephanSchmidt](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/stephanschmidt/32/1781_2.png) [@StephanSchmidt](https://discuss.hotwired.dev/u/StephanSchmidt)\
**Post date:** [March 17, 2021, 2:21pm UTC](https://discuss.hotwired.dev/t/form-does-not-update-turbo-frame/2531/1 "2021-03-17T14:21:52Z")

</div>

I have a form

```
<turbo-frame id="goals">
    <form action="/add_goal">
        <label for="goal_name">Goal Name</label>
        <input type="text" id="goal_name" name="goal_name" placeholder="Goal name..">
        <input type="submit" value="Add Goal">
    </form>
</turbo-frame>

```

that I want to replace.

As a reply I send 303 and “Location: /added\_goal” and “/added\_goal” returns

```
<html>
<body>
<turbo-frame id="goals">
    OK!
</turbo-frame>
</body>
</html>

```

Turbo sets the src on turbo-frame but does not replace the content.

---

<div class="post-metadata">

**Author:** ![remast](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/remast/32/1158_2.png) [@remast](https://discuss.hotwired.dev/u/remast)\
**Post date:** [March 17, 2021, 7:25pm UTC](https://discuss.hotwired.dev/t/form-does-not-update-turbo-frame/2531/2 "2021-03-17T19:25:10Z")

</div>

Hi Stephan,

you do not need a turbo frame to submit a form. Just use a normal form with id like:

```
  <form action="/activities/new"
      method="POST"
      id="b__activity_edit">
     <!-- form content -->
</form>

```

Then just return a Turbo stream with id of the form and action replace like:

```
<turbo-stream action="replace" target="b__activity_edit">
    <template>
     <h1>Update</h1>
   </template>
</turbo-stream>

```

I use that in my side project Baralga, a web based time tracker [GitHub - Baralga/backend: Baralga Server Backend for multi-user capable time tracking.](https://github.com/Baralga/backend)

Bye,  
Jan
