How to clear text after saving the data

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?

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.

1 Like