Keep the lookup value when using 'navigate' method to change form. RRS feed

  • Question

  • Hi,
    I have two forms for Opportunity entity, one when potential customer is account and the other when contact. I use JavaScript to display the right one OnLoad (navigate method of Xrm.Page.ui.formSelector). The problem is when I create New opportunities from contact/account. The potential customer field gets prepopulated then, but if the last opportunity was related to the other entity, navigate Method changes the form and lookup value is gone. This was working correctly in CRM 2011. Is it a bug? Does anyone have a solution?

    • Edited by Radevic Wednesday, March 2, 2016 1:42 PM Editor problem...
    Wednesday, March 2, 2016 12:44 PM


  • Solution for me was to navigate using Xrm.Utility.openEntityForm With parameters instead of navigating from formSelector. See example in SDK.

    • Marked as answer by Radevic Wednesday, March 2, 2016 1:44 PM
    Wednesday, March 2, 2016 1:44 PM