Zoho Creator Populate radio field with values with all the created rows subfor

Zoho Creator Populate radio field with values with all the created rows subfor

I have Main Form where i have a lookup field where i get brewery names and the number of tanks as a multiline text field with a list of beer names

Based Brewery selected and bbt_tanks number i create rows in the subform and now i want to populate list of beers to select for each of these rows added i can only populate first row with beer list radio and not able to add to the reset of the rows how achive this.

here is the screenshots




second row not able to populate



-- here is deluge script
if(input.BBT_BREWRIES != null)
{
// Get brewery data
brewery = ECB_BREWRIES1[ID == input.BBT_BREWRIES];
beer_names_raw = brewery.Beer_Names;
beer_names = beer_names_raw.toList("\n");
bbt_count = brewery.BBT_NUMEBR;
// Prepare numbers
numbers_raw = "1,2,3,4,5,6,7,8,9,10";
numbers = numbers_raw.toList(",");
// Clear existing subform rows
input.BBT_INFO.clear();
// Declare list to hold all rows
sub_rows = Collection();
for each  num_str in numbers
{
num = num_str.toLong();
if(num <= bbt_count)
{
bbt_label = "BBT#" + num.toString();
row = BBT.BBT_INFO();
// Declare a new subform row
row.SUB_BBT=bbt_label;
row.SUB_BREWERY=brewery.ECB_Brewery_Names;
//row.BBT_Other_Beer=beer_names;
// Assign BBT# label
//row.BBT_Beer:ui.add(beer_names);  // ✅ Populate beer radio options
row.Multi_Line=beer_names;
sub_rows.insert(row);
// Add row to collection
}
input.BBT_BBT:ui.add(bbt_label);
input.Beer1:ui.add(beer_names);
}
// Insert rows into subform
input.BBT_INFO.insert(sub_rows);
show BBT_INFO;

}

please let me know if need more info

    Nederlandse Hulpbronnen