Tagged Content List

Change the record Form during an OnLoad via JavaScript?

Hello, We have 2 different forms for our Company entity. One is user facing and the other is Admin facing. I was wondering if through an OnLoad event via JavaScript you can set which Form is shown based on a field value? I know that CRM will default to the most recently used Form of the 2 but in this...
Forum Thread | on 1 Jul 2015 by Jared Moore

Help with Javascript OnLoad / Toggle Tab Visibility

The purpose of this script is to toggle visibility of two different tabs based on the value of an option set on a field on the Case form. The code I have so far does exactly what I want, however when the form is reloaded both tabs are again visible. I would like for this script to trigger not only...
Forum Thread | on 30 Apr 2015 by GreyHat727

CRM 2011 Error handling, OnLoad Javascript code

Good afternoon, Evening to all reading, I am attempting to re-create a form entirely, as one section, could not be re-added normally without being re-created from scratch. As a result it is requiring my to change my JavaScript code, which has worked in the past. A picture of my error message is below...
Forum Thread | on 29 Jan 2015 by H.Evans2.14

JavaScript In Onload

I use the code Xrm.Page.data.entity.save() during OnLoad so that the record is automatically created. This is needed as a workflow is triggered when the record is created to update some fields. 1. Is there a better way of doing this ? When I click the + to add a record on the subgrid, I am shown a...
Forum Thread | on 22 Nov 2014 by henda79

onload fails to hide cells.

I have 3 picklists: "off_udbud" "off_forlngelse" and the standard "opportunityratingcode". Depending on the value in picklist 4, one list is unhidden by the onload-klient skript I get this message: "Error, 'list 4' is not defined." salgsproces = list...
Forum Thread | on 11 Nov 2009 by Jakob Kristiansen

Change font of read-only fields in a Form.

We have certain fields that are read-only as they pull data from our AS400. The default font of a read-only field is a very light grey and is very hard to read. How do I make this font darker and easier to read? I have come across this .js but have not been able to get it to work: function setColor...
Forum Thread | on 28 Aug 2012 by Joe Dubs

Javascript errors after Upgrading from CRM 4 to CRM 2011

After a successful upgrade from CRM 4 to CRM 2011 everything is working fine except we keep getting javascript onload errors in almost all dialogs including lookup ones. for example when clicking the new button of the contacts the dialog appears and works fine but it shows this error: There was an...
Forum Thread | on 4 May 2011 by Ziwar Majid

Updated Forms (Polaris) - Hide/Show fields

What is the correct way to show / hide form fields based on the value of another field on form load when using "updated forms"..? At the moment we use JavaScript but this reverts the form back to the Classic style whereas the user would like to use the new process style.
Forum Thread | on 5 Sep 2013 by redstephen69