# update value of another input when an input is triggered in a multi input single object

**URL:** <https://talk.observablehq.com/t/update-value-of-another-input-when-an-input-is-triggered-in-a-multi-input-single-object/8532>\
**Category:** Help\
**Created:** [November 25, 2023, 6:21pm UTC](https://talk.observablehq.com/t/update-value-of-another-input-when-an-input-is-triggered-in-a-multi-input-single-object/8532 "2023-11-25T18:21:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [December 4, 2023, 10:23am UTC](https://talk.observablehq.com/t/update-value-of-another-input-when-an-input-is-triggered-in-a-multi-input-single-object/8532/8 "2023-12-04T10:23:15Z")

</div>

Be sure to take a look at the [d3-zoom docs](https://d3js.org/d3-zoom#zoom_transform). There you’ll find an example to reset a zoom transform, which you need to apply _before_ you remove the handlers so that your SVG can still update:

```js
    } else {
      svgOrigin.call(zoom.transform, d3.zoomIdentity);
      // Remove all *.zoom event handlers
      svgOrigin.on(".zoom", null);
    }

```

---

_[View the full topic](https://talk.observablehq.com/t/update-value-of-another-input-when-an-input-is-triggered-in-a-multi-input-single-object/8532)._
