Sure this is a good approach, if you want to make it much easier, you
can use my function I created for any form validation.Customizable and
save a lot of time. There is also a function for resetting form.The
reset function have a small bug trying to reset a subform with
instances... To fix it, just need to remove xfa.host.resetData.Resources
for from design - best practices for layout?