Back to Basics # 72: Limit Special Characters Using a Webresource in Dynamics CRM

Recently we got a requirement to restrict user to enter special characters. Step 1 : Use the below method for restricting special characters function checkForSpecialCharacters(executionContext) { var formContext = executionContext.getFormContext(); var detailfieldcontrol=formContext.getControl("cmn_details"); var detailfield = formContext.getAttribute("cmn_details").getValue(); if (detailfield === null || detailfield ==='') return; var specialChars = "!@$%"; for (var i = 0; i < …

Continue reading Back to Basics # 72: Limit Special Characters Using a Webresource in Dynamics CRM