add javascript calls to crm forms
Provide the ability to add javascript calls to crm forms directly from visual studio.
-
Troy Spjute commented
While this may be a nice feature, I usually only set up On Load and use JavaScript to apply all of the onChange functions (Xrm.Page.getAttribute("").addOnChange()). This way you don't need to deal with setting up all of those onChange functions within CRM, just make sure that onLoad works.
-
Peter Street (LazerFX) commented
I understand this as the ability to associate a function in a JavaScript file with an event on a Dynamics CRM form - for instance, Form OnLoad, or the OnChange event of a field - from within the XrmToolkit interface in Visual Studio.
It would be very handy, especially when populating a large number of fields with functions; the ability to then set up another form on a secondary system easily without having to export/import customisations (i.e. transferring to a development environment with non-compatible customisations) becomes the immediate benefit of this feature.
-
Kai Gutzeit commented
Hey Alex, do you mean the ability to modify the Entity Form directly? I think a call to
example url:
out of the solution manager would be nice. If you mean sth like this you get my last 2 votes ;)
-
Peter Hale commented
I would also like this. It would save going back to the CRM form to add libraries and functions. Events
-
Alex commented
I mean to provide Custom Tool window with list of crm entity forms (system forms) where user can add scripts to form and choose which functions to call on Load and which on field change. It would be great to store this customization locally as xml file. Thank you.
-
Hi Alex, could you please provide a bit more detail and maybe an example of what you mean. I'm not quite sure I understand this request. Thanks!