get all values from a picklist RRS feed

  • Question

  • Hi all,


    I need to use: the {Field}.Options property to get all values (or labels) of a picklist


    i've tried to use: alert(crmForm.all.intercom_policy.Options)

    but all what i get was: [object Object],[object Object],[object Object],[object Object]



    any suggestions ??

    Sunday, April 3, 2011 3:14 PM

All replies

  • Hi Mostafa,

    Please find updated version:

    var Field = crmForm.all.intercom_policy;
    for ( var i=0 ; i < Field.Options.length ; i++) { alert(Field.Options[i].Text); }

    My Dynamics CRM Blog: http://bovoweb.blogspot.com
    Sunday, April 3, 2011 5:26 PM