In the SalesLogix web client there is code to handle parsing phone numbers in the SalesLogix phone web control for numbers using “x” to denote the start of an extension (i.e. 6515551111×123). There is also code in place to handle phone numbers using “ext” as the extension designator however this code has a syntax error. The result of this is that phone numbers using this extension designator will throw a client side java script error. That is bad news because it will cause other client side actions (like switching between tabs) to not work.
Luckily the error in the “ext” parsing is available to be fixed. It is in the client side code file that the SalesLogix web controls use, sage-controls.js.
Lets take a look at modifying it. The java script file is located in the VFS under the SLX portal, support files and then under the jscriptsage-controls folder. The deployed file is pushed out to SlxClientjscriptsage-controlssage-controls.js:
The code in question is contained in the FormatPhoneNumber function. Lets look at how we need to modify it. Below is the portion of the code that needs to be changed.
The green lines are the commented out original lines. The red lines are the new bits. The highlighted sections are the important new changes.
return val;var ext=””;var temp=val;var vTempExt=””;var extFound=false;var isInter=false;var extAtBegin=false;var i=-1;if(val.charAt(0)==”+”)
This code is only applicable in 7.5x. In the new 8x version this code has all been completely re-done.