# Output on Cancel Button of UI Form

**URL:** <https://discourse.nodered.org/t/output-on-cancel-button-of-ui-form/81666>\
**Category:** Dashboard\
**Created:** [29 September 2023 09:34 UTC](https://discourse.nodered.org/t/output-on-cancel-button-of-ui-form/81666 "2023-09-29T09:34:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamieS](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@JamieS](https://discourse.nodered.org/u/JamieS)\
**Post date:** [29 September 2023 09:34 UTC](https://discourse.nodered.org/t/output-on-cancel-button-of-ui-form/81666/1 "2023-09-29T09:34:10Z")

</div>

I'm trying to use the UI Form to enter data for an inventory program and I'm hoping some one could help me change the node to give an output when the Cancel button has been pressed. Right now I've added a Back button but having the Cancel button output that would take me back to the main menu would be a cleaner approach. I looked into the node's code but couldn't identify the lines that send data to the output side of the node. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 October 2023 09:35 UTC](https://discourse.nodered.org/t/output-on-cancel-button-of-ui-form/81666/2 "2023-10-29T09:35:06Z")

</div>

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