How can I clear the form content? The form’s inputs are currently populated from the selected table row. I added a button on the table’s toolbar to open the modal/form, but it still shows the data from the selected row. I want the form to open empty instead.
Hi @jake.albion! You can add an event handler to your toolbar button to clear the table’s selection before showing the modal.
That way, the button will have two event handlers: one to clear the selection, and another to show the modal/form.
The right answer here is really dependent on your set up and how you are filling the form out.
If you are using the data input field of the form, I'd suggest setting a clear on the button on the button toolbar. Youshould probably do this via a script if you have set up an event handler to open the modal.
I would suggest to not set the default values in each input field but set the form data value instead and reference the keys. You will have a much cleaner set up.
