Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Specific form for a Lookup

Posted on by Microsoft Employee

Hi Guys,

I have a custom form for Account (other than default form).

When a specific account lookup is clicked, i want to open this custom form.(but not default form)

Please let me know the best way to do it.

Thanks,

Naveen

 

 

 

*This post is locked for comments

  • Suggested answer
    Aileen Gusni Profile Picture
    Aileen Gusni 44,522 on at
    RE: Specific form for a Lookup

    Naveen,

    You need to write your own javascript to move from one form selector to another selector. Because you cannot customize the + button in the lookup..

    Agree with Ben.


    See this link I think you got similar requirement.

    https://community.dynamics.com/crm/f/117/p/142685/313105.aspx#313105

    Thanks.

  • Suggested answer
    Hosk Profile Picture
    Hosk on at
    RE: Specific form for a Lookup

    Yes

    if you had an onchange event for the lookup, this would like to some Javascript

    in the javascript you could then refresh the record specifying a different form

    To load a different form

    Xrm.Page.ui.formSelector.items.get(TypedFormID).navigate()

    this does exactly what you want

    mscrmshop.blogspot.in/.../how-to-display-entity-form-based-on.html

    ashwaniashwin.wordpress.com/.../navigating-to-multiple-forms-dynamically-using-jscript-in-crm-2011

    this is interesting

    stackoverflow.com/.../how-to-change-default-form-based-on-dropdown-js-and-crm

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Specific form for a Lookup

    Hi Jason,

    Thank you very much for the response,that really helps me.

    My major concern is that i want to open a specific Account form(Other than the default active form) for a specific account lookup !

    Can we do this ?

    Regards,

    Naveen

  • jlattimer Profile Picture
    jlattimer 24,558 on at
    RE: Specific form for a Lookup

    You can effect the lookup view with JavaScript:

    http://msdn.microsoft.com/en-us/library/gg334266.aspx#BKMK_lookupControlMethods

    Otherwise a custom HTML/JavaScript web resource that writes back to the native lookup field would be the way to go to avoid restrictions on the native functionality. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans