Destroy something onSubmit of InputField.

Hello,

Am wondering and researching hard to find an answer of how to destroy something once ‘enter’ or submit is fired with the UI Inputfield.

Am having difficulty finding a solution.

I would like to destroy the field once text is submitted.

Please help?

Found a way, I just add:

if keycode enter, then destroy the field lol.

Easy peasy.