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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Suggested Answer

How to load different forms based upon a field value, javascript?

(0) ShareShare
ReportReport
Posted on by 886

Hi,

I have 300 fields in my current form, which is VERY SLOW. I read that something is optimized in CRM 2016. But I figure that the only way I can increase this, is by differentiate the fields, and place them on different form.

Ex.

100 fields are placed on form 1

100 fields are placed on form 2

100 fields are placed on form 3

Based upon a value in a field, ex. type = 1, form 1 should be loaded. Type = 2, form 2 should be loaded. Type = 3, form 3 should be loaded. If type is different from 1,2,3, form 4 should be loaded (A fallback with all 300 fields)

Can this be easily solved?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sayhaitokumar Profile Picture
    7,042 on at

    Hi

    It would probably be easier to have a single form, and use java script to change the way it looks (hiding/showing/enabling/disabling certain fields). The control over which forms the user sees is based on security roles and how you define the hierarchy. Trying to get it to do something it wasn't designed to do, may be more pain than it is worth

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

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    You can change forms using Javascript however I don't think this will solve your problem since the first form will have to full load and then the second will then be loaded - so infact it could actually make your load slower than simply having a single form and showing/hiding tabs/sections/fields dynamically. The important trick is to ensure that the fields/tabs have the 'visible by default' unchecked so that they are not initially visible and then show them using business rules/javascript.

    Perhaps another consideration would be to create child entities that you group related data together and then create a many-to-one relationship to that entity. You could use a 'quick view' form to show some data from that child entity on the parent record's form if needed - but not all otherwise you would be back to square one!

    Hope this helps,

    Scott

  • rskadk1 Profile Picture
    886 on at

    Allright, thanks for your answers. So basically what I may go for based upon your answers.

    - Set all sections not visible by defaults

    - Instead of javascript - make formrules that will display the fields required

    Will this give me anything? (Besides the form rules will be VERY LONG and a pain to setup)

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Yes - this is the right idea.

    Different forms are good for role base views of the same data - so you might have different people who only need part of a record to do their job and so you would create a form just for thier role.

    Please mark this thread as answered to close it.

    Thanks

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

News and Announcements

Season of Giving Solutions is Here!

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
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans