title: Get text values from Global picklist in CRM Online 2013?
body: <p>How can I extract values from Global picklist in crm 2013? I update some text fields based on the value of the option set. Usually in local option set we can use the following code to update the fields based on the value of option set.</p>
  
  <pre><code>var value = Xrm.Page.getAttribute("new_optionset").getText();
  if(value=="ABC"){
   Xrm.Page.getAttribute("new_field1").setValue("Value");
   Xrm.Page.getAttribute("new_field2").setValue("Some Value");
   Xrm.Page.getAttribute("new_field3").setValue("Some Other Value");
   }
  </code></pre>
  
  <p>But this does not seem to work if I am using a global option set. Is there another way of handling them?</p>