Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Switch Forms Based on a Field Value or Selected View in Dynamics 365

Posted on by 37

Hello Microsoft Community,

I’m working in Dynamics 365 Sales and have a requirement to dynamically switch forms based on the type of account being worked on. Here's the scenario:

  • We have multiple forms for the Account entity, customized for different account types (e.g., Distributor vs. Customer).
  • I’d like to automatically load the appropriate form when a user opens an account record, based on a field value like "Account Type."

For example:

  • If "Account Type" = "Distributor," the "Distributor Account Form" should load.
  • If "Account Type" = "Customer," the "Customer Account Form" should load.

Alternatively, if a user is in a specific view (e.g., "Distributor Accounts"), can the system load a specific form for accounts opened from that view?

Is this possible using out-of-the-box features, or would it require JavaScript customization? If someone has tackled a similar challenge or has insights into achieving this functionality, I’d greatly appreciate your advice or guidance.

Thank you for your help!

Categories:
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 7,998 Super User 2024 Season 1 on at
    Switch Forms Based on a Field Value or Selected View in Dynamics 365
    You need a function On Form Load. Compare different conditions and then load appropriate for. Please refer below article which will help you to implement your requirement.
     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,658 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans