Clear Form's Data Object (not inputs) on Form Reset

Hey all,

I have a form where users are adding an absence for a student. The absence can be 1 day or span multiple days, they submit the form which generates absences according to their enrolments through a custom module I’ve created, which then displays below the form for verification before submitting.

My problem is, however, when I reset the form on modal hidden, or reset the form with the temporary reset form button you can see in the screenshot, the data doesn’t clear. (The inputs do clear as expected).

image

Is there any Wappler way to reset the data object on the form? Or, will I need to add a custom js snippet to run on form reset?

Cheers all.

Community Page
Last updated: