n.
         */
        function resetFields() {
            // Get the modal element
            const modal = document.getElementById('declmodal');

            // Get the form element inside the modal
            const form = modal.querySelector('form');

            // Get the input fields inside the form
            const recipientNameInput = form.querySelector('#recipient-name');
            const typeNameSelect = form.querySelector('#type-name');
            const joinNameInput = form.querySelector('#