Similar to how the autotest (editformtext.cpp) tests the form contents, I implemented the reset form option in a similar way by creating a function to reset each widget separately .
I am not quite sure that resetting radio buttons will work well, when radio buttons are in different button groups.
This implementation is inspired by previous comments about this bug.