I created an admin page where I input values of similar type='name' which will pop up on submit to another page as radio buttons. But I'm getting an error 'cannot read property value of null' from the console on the page where the radio buttons are been posted.
let answer = document.querySelector('input[name="choice"]:checked').value;