@yisrael-wix I have 4 options in my radio button and 9 items shown in my repeater. There’s a description as well above the radio button something like a question, and the user will choose which is the best answer among the four choices.
Here’s the code
wixData.query( “DatabaseName” )
.limit( 9 )
.find()
.then((result)=>{
$w( “#rptr” ).data = result.items;
$w( " #rptr " ).forEachItem(($item)=>{
let getCItem = $item( “#dataset” ).getCurrentItem();
$item( “#choices” ).options = [
{ “label” : getCItem.a, “value” : “a” },
{ “label” : getCItem.b, “value” : “b” },
{ “label” : getCItem.c, “value” : “c” },
{ “label” : getCItem.d, “value” : “d” }
];
$item( “#description” ).text = getCItem.qs;
$w( " [#submit](https://www.wix.com/velo/forum/search/~num~submit) " ).onClick(()=>{
console.log($item( " [#radioButton](https://www.wix.com/velo/forum/search/~num~radioButton) " ).value);
})
})
})