locked
multi select lookup through javascript code for cross browser RRS feed

  • Question

  • Hi, 

    We have converted single lookup to Multi select lookup through code. When selecting more than one value in Cross browser gives an error. it works perfectly in IE. Did anyone face this issue before ?

    Thanks, 

    Madhan

    Monday, January 27, 2014 8:03 AM

All replies

  • Hi,

         Here is a link with example for the same:

    http://blog.slalom.com/2011/05/23/multi-select-option-sets-in-dynamics-crm/


    Hope this helps.
     
    -----------------------------------------------------------------------
     Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

     
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    • Proposed as answer by Minal Dahiya Monday, January 27, 2014 11:24 AM
    Monday, January 27, 2014 11:23 AM
  • Hi Minal, 

    Thank you for the reply, we are looking for multi select lookup for cross browsers and not multi select option set.

    Thanks, 

    Madhan


    • Edited by Madhan.B Tuesday, January 28, 2014 2:55 AM
    Tuesday, January 28, 2014 2:54 AM
  • Hi,

    Can you provide more insight to your query.

    Thanks & Regards,


    Anubhav Bajpai

    Tuesday, January 28, 2014 7:08 AM
  • Hi, 

    We have converted a lookup into multi select lookup using the below script.

    document.getElementById("lookupname")._behaviors[0].set_lookupStyle("multi");

    We did not face issue while we are selecting multiple values in the lookup in IE browser. In Safari browser, if we are selecting more than one record and click OK we are receiving this alert "An error occurred, please return to the home page and try again". Still we are able to see the selected values in the lookup and save the entity. 

    Thanks, 

    Madhan

    Tuesday, January 28, 2014 7:26 AM