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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Default Form view for account, based on value selected in relationship type field

(0) ShareShare
ReportReport
Posted on by

Hi there,

I know you can default certain form views based on users and security roles, but I want to do this based on a value selected in the record.

We're going to be using Accounts for customers, prospects, vendors and partners. Vendors and partners have different forms since the data collected is unique to them.

The Relationship Type picklist is required. When the picklist choice is selected - say, Partner, I would like for each time that record options to open up on the Partner form view.

But if you leave it, and go into customer accounts, it should go right back to the default normal view, and not the partner view any longer.

Is this doable with simple configuration, workflows or such? Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Karth Profile Picture
    on at

    CRM 2013 exposes Xrm.Page.ui.formSelector property to achieve this through JScript. You need to configure your JScript on Load and Save of the CRM Form.

    Here's how this is done in CRM 2011. Pretty sure you can use the same approach for CRM 2013.

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

    Here's another post where someone had a similar requirement.

    social.microsoft.com/.../change-forms-using-javascript

    So, the answer is - yes, this is doable but with Jscript.

  • houstonbrooke Profile Picture
    on at

    Thanks Karth,

    I'll look into this and see if I feel comfortable messing with the code. At least I know how to do it now!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans