title: Acrobat forms and javascript calculation
body: <p>In a form I have <strong>4 radio buttons</strong>, under the label <code>Q3</code>. Also i have a text field labeled <code>lictype</code> Each radio button has its own respective <code>Button Radio Choice Value</code> </p>
  
  <ul>
  <li>radio1 = <code>Pre</code> </li>
  <li>radio2 = <code>Pro</code></li>
  <li>radio3 = <code>Ult</code></li>
  <li>radio4 = <code>Uns</code></li>
  </ul>
  
  <p>When a radio button is checked. I want the value of that button to be displayed in the <code>lictype</code> text field.</p>
  
  <p>Here is the JS I tried in a calculation. </p>
  
  <pre><code>var q3 = this.getField("value")
  
  if (q3.value == "Pre”){
  {
  lictype.value = “Pre";
  }
  elseif (q3.value == "Pro”)
  {
  lictype.value = “Pro";
  }
  elseif (q3.value == "Ult”)
  {
  lictype.value = “Ult";
  }
  else (q3.value == "Uns”)
  {
  lictype.value = “Uns";
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nOtbl.jpg" alt="VISUAL DESCRIPTION"></p>