web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Form Load

(0) ShareShare
ReportReport
Posted on by

I am trying to load a different form on a form load.

For instance my Payee's have an Account, so on clicking a payee that should load the Account form instead of the Payee. How can I achieve this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If you want to switch form during onload you should use formselector. Check this article - msdn.microsoft.com/.../gg309560.aspx

  • Suggested answer
    Goutham A Profile Picture
    2 on at

    If you want to load another entity form, like account on click od case etc  you need to write atleast javascript logic for navigation

    for example, if you want to open account form on click of payee entity, write the below javascript onload of payee entity

    function onload()

    {

    //add an conditional statement if required as per your logic/requirement

    var id="7feb4355-b73d-434c-b9a7-a5e69af90866" \\give ur account recordguid here

    Xrm.Utility.openEntityForm("account",id,null,null)

    }

    refre below link for more info on openentityform

    https://msdn.microsoft.com/en-in/library/jj602956.aspx#BKMK_OpenEntityForm

    Thanks

    Goutham

  • SonaliT Profile Picture
    on at

    Hi Goutham, I tried the solution you recommended but I am getting an error

    TypeError: Cannot read property 'Initialize' of undefined at eval (eval at RunHandlerInternal (https://....crm6.dynamics.com/form/ClientApiWrapper.aspx?ver=1837303619:153:1), <anonymous>:1:26)

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello

    Depending on why you want to view the Account and what information is needed, you could add a quick view (for Account) to the Payee form. While this would be a quick, non-code solution, it might not suit your exact requirements.

  • SonaliT Profile Picture
    on at

    Hi James, Payee is a middle place for information, while Account holds all the fields. So the re-direct to Account for payee and all other information.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans