Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to load different forms within the entity onLoad based on field value in the entity

(0) ShareShare
ReportReport
Posted on by 4,515
Hi, I need some help how to load the form of an entity I have Account entity which has 2 forms (BUYER and SELLER). I have a field in the form for option set Buyer or Seller.. How can I make my SELLER form load OnLoad when my Seller field option is selected???? Any help would be much appreciated

*This post is locked for comments

  • Nizar JLASSI Profile Picture
    2 on at
    RE: How to load different forms within the entity onLoad based on field value in the entity

    U R Welcome donyc :)

    Nizar JLASSI
    Dymamics CRM Trainer and Senior Consultant
    Email : n.jlassi@gmail.com

    4TOCOPWZQ6TL.jpg  4TOCOSXBT5KL.jpg  4TOOJYT41KG6.jpg  

  • donyc Profile Picture
    4,515 on at
    RE: How to load different forms within the entity onLoad based on field value in the entity

    thanks!

  • Verified answer
    Nizar JLASSI Profile Picture
    2 on at
    RE: How to load different forms within the entity onLoad based on field value in the entity

    Hi donyc,

    The built-in form selection is managed by security roles not by fields content.

    But there is a way, you can use formSelector object in OnLoad() Envent on your form. 

    This formSelector object that you can use it by Javascript and it allow you to choose one form between all form that you have access.

    But there is a bad point with this solution (the unique solution). Your main form will load untill all your page is loaded with the whole DOM and after that you can change form. It looks like your form appear twice.

    If you insist to do it : use this Xrm.Page.ui.formSelector.items.get(1).navigate();

    (1) is your form number in the items array.

     

    Nizar JLASSI
    Dymamics CRM Trainer and Senior Consultant
    Email : n.jlassi@gmail.com

    4TOCOPWZQ6TL.jpg  4TOCOSXBT5KL.jpg  4TOOJYT41KG6.jpg  

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans