title: Create RadioGroups Dynamically oracle APEX
body: <p>I am currently using oracle APEX 4.1 and have an issue with creating radiogroups dynamically.</p>
  
  <p>I have a simple requirement(!) to display a list of questions from a table and display a yes/No radiogroup button next to each question. The list of questions may vary, so is not static.</p>
  
  <p>To do this, I decided to create a plsql anonymous block and a sample of the code is below: </p>
  
  <pre><code>For c1 IN (select * from question)
  LOOP
  v_row:=v_row+1;
  v_rowName:='F'||v_row;
  v_radioYes:='&lt;input type="radio" name='||v_rowName||'  value="yes" /&gt;Yes';
  v_radioNo:='&lt;input type="radio" name='||v_rowName||'  value="no" /&gt;No';
  v_radio:=v_radioYes||' '||v_radioNo;
  htp.p('&lt;tr&gt;&lt;td&gt;'||v_row||'. '||c1.Question_text||'&lt;/td&gt;&lt;td&gt;'||v_type||'&lt;/tr&gt;');
  END LOOP;
  </code></pre>
  
  <p>So the questions are being displayed and the radiogroups are also being displayed next to each question.</p>
  
  <p>My issue is that on submit, I need to find out what options a user has selected for each question and save to a database. Easy, but I cannot reference the radiobuttons for each question to find out what a user has checked. 
  Ideally, these radio button should have been created using the APEX tool, but I could not get this to do in a loop dynamically. Is there a way of referencing these radiogroups that have been created dynamically? Am I taking the wrong approach?</p>