Skip to main content
Mayank Rathor (Barco) 님이 #Mobile에 질문했습니다

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개
  1. 2016년 3월 15일 오전 8:00
    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.
0/9000