Help Error on inputting radio group into database

I am wanting when a website member on my site selects their option in the radio group the selected option gets put into a database along with their information so it can be recalled at a later time.

my code is I don’t know what is wrong but it get an error when I run it.

export function radioGroup1_click ( event ) {
$w ( “#dataset3” ). onReady (() => {
console . log ( “dataset ready” );
$w ( ‘#dataset3’ ). setFieldValue ( ‘q1Answer’ , $w ( “#radioGroup1” ). value );
console . log ( “User selected answers have been put into database for user inputs” )

});
}

DatasetError: There is no current item

I have just tried linking the radiogroup to the database and field key with a submit button but that makes the radiogroup and submit button greyed out not allowing a user to select an option.