@yisrael-wix THANK YOU VERY MUCH! It’s working now. ![]()
I really appreciate your time and effort just to help me with my problem.
I removed the 2nd onClick so it becomes like this…
$w( " #submit " ).onClick(()=>{
let answers = ;
$w( “#rptr” ).forEachItem(($item)=>{
console.log($item( “#radioButton” ).value);
let answer = $item( “#radioButton” ).value;
answers.push(answer);
})
// all the answers are now available in the answers array
console.log( ‘all answers’ , answers);
console.log(answers[ 0 ] + " " + answers[ 1 ] + " " + answers[ 2 ]);
})
And the result is this…
