locked
How to take Optionset Text Using this code Xrm.Page.getAttribute(CRMFieldSchemaName).getValue(); RRS feed

  • Question

  • Hi,

    I am trying to take option set value text using the below code but am getting only value of the option set value only in crm2011

    Xrm.Page.getAttribute(CRMFieldSchemaName).getValue();

    regards


    Senthil.D
    Friday, July 29, 2011 9:01 AM

Answers

  • Hi Senthil,

    Using

    .getValue(); you will have retrive number eg: 2

    .getText(); will give you a text eg: Partner


    My Dynamics CRM Blog: http://bovoweb.blogspot.com
    • Marked as answer by D.Senthil Friday, July 29, 2011 11:48 AM
    Friday, July 29, 2011 11:38 AM

All replies

  • Hi Senthil,

    Using

    .getValue(); you will have retrive number eg: 2

    .getText(); will give you a text eg: Partner


    My Dynamics CRM Blog: http://bovoweb.blogspot.com
    • Marked as answer by D.Senthil Friday, July 29, 2011 11:48 AM
    Friday, July 29, 2011 11:38 AM
  • Hi,

    Thanks the above code works fine

    regards


    Senthil.D
    Friday, July 29, 2011 11:49 AM