# How to clear text after saving the data

**URL:** <https://forum.inductiveautomation.com/t/how-to-clear-text-after-saving-the-data/58465>\
**Category:** Ignition\
**Tags:** ignition80, ignition81\
**Created:** [April 14, 2022, 12:13pm UTC](https://forum.inductiveautomation.com/t/how-to-clear-text-after-saving-the-data/58465 "2022-04-14T12:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anuradha.upase](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anuradha.upase](https://forum.inductiveautomation.com/u/anuradha.upase)\
**Post date:** [April 14, 2022, 12:13pm UTC](https://forum.inductiveautomation.com/t/how-to-clear-text-after-saving-the-data/58465/1 "2022-04-14T12:13:39Z")

</div>

I have a text field and one save button. If I click on the button, data was saved, but the character on the text field remained same . I want to clear this text after click on the button.

For this what should i do?

---

<div class="post-metadata">

**Author:** ![MattEbert94](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@MattEbert94](https://forum.inductiveautomation.com/u/MattEbert94)\
**Post date:** [April 14, 2022, 1:45pm UTC](https://forum.inductiveautomation.com/t/how-to-clear-text-after-saving-the-data/58465/2 "2022-04-14T13:45:18Z")

</div>

When the user clicks the save button, use the `system.perspective.sendMessage()` function to send out a message. Then on each of your text fields that you want to clear, setup a listener for that message. When the listener is triggered, have it clear the props.text of that field. This is an easy way for clearing multiple fields on the screen from that button click.
