title: How to score points based on the answers given in the entity form
body: <p>I have a form with some question on it. Each questions has options and every option has some points attached to them. After answering all the questions the user should see the total score 
  in a text box. The answers will be in a drop down menu. </p>
  
  <p>Is there any way where I can attach particular weightage to each answer? Btw depending on the answer the score might be added to or subtracted from (negative scoring).</p>
  
  <p>What I was actually doing was setting the option set values to the desired numbers and adding them to get the result. But I ran into trouble when two or more options had the same weightage/score and there are two options with negative marks. So now i am looking forward to a better way to handle the issue. Here is a code snippet.</p>
  
  <pre><code>function getValue()
  {
  var optionset = Xrm.Page.getAttribute("inmate_housingq1");
  
  var value = optionset.getValue();
  
  alert(value);
  
  var optionset2 = Xrm.Page.getAttribute("inmate_housingq2");
  
  var value2 = optionset2.getValue();
  
  alert(value2);
  
  var value3 = value + value2; 
  
  alert(value3);
  
  Xrm.Page.getAttribute(“inmate_housing_score“).setValue(“value3”);
  
  }
  </code></pre>