If you can’t install browser extensions like Level Up due to organizational policies, an alternative is to paste in the JavaScript expressions for tasks done by those extensions into the developer console. An even better approach is to use bookmarklets with the Chrome browser.
This then gives us a bookmark that runs the JavaScript expression against the page.
We can create bookmarks and use the below as the URL
javascript: (() => {
// Your code here!
})();
Just paste in the contents of the expression we want to run from https://chrismvnro.com/javascript-expressions-for-web-tool-console/ e.g. to show the logical/schema name this would be the URL to use in the bookmark
javascript: (() => {Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {let control = Xrm.Page.getControl(attribute.getName());control.setLabel(attribute.getName());});})();
Common bookmarklets
| Objective | URL |
| Show logical/schema name for all columns on form | javascript: (() => {Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {let control = Xrm.Page.getControl(attribute.getName());control.setLabel(attribute.getName());});})(); |
| Unlock locked columns on form | javascript: (() => { Xrm.Page.data.entity.attributes.forEach(function (attribute, index) { let control = Xrm.Page.getControl(attribute.getName()); if (control) { control.setDisabled(false) } });})(); |
| Make all columns optional | javascript: (() => {Xrm.Page.data.entity.attributes.forEach(attr => { attr.setRequiredLevel(‘none’); });})(); |
