How to declare proper function to clear form data?

The docs show how to add buttons but they do nothing. Can someone show how a form is cleared?

Hi @RichardVencu,

I’m not sure I have the full context on what you are trying to achieve here, but have you added an onSubmit handler to the form?

These docs have an example, have you seen this?
https://developer.atlassian.com/platform/forge/ui-kit-components/form/

Let me know how you get on :slight_smile:

Hi. Yes as I replicated the documentation I can submit. However after submitting the form is not getting clear automatically. I need to add code to clear fields values. This is necessary in order to allow the form to be submitted more than once like for customized loging work for instance