I'm using html radio button instead of salesforce radio buttons. I want to assign the selected radio button value to a variable present inside the apex controller. Ho we can acieve this requirement?
Html Code:
<label class="radio-inline">
<input type="radio" id="r3" name="optradio2" value="OR"
checked="checked"/><strong>OR</strong>
</label>
<label class="radio-inline">
<input type="radio" id="r4" name="optradio2" value="AND"/>
<strong>AND</strong>
</label>
Apex Controller Variable:
public String seleectedRadio{get;set;}
답변 2개
Hi Mayank, have a look at the developer community, like Pruthvi mentioned. Also explore the concepts of Javascript remoting for Visualforce or Visualforce Remote objects.