Change Default Cursor Position for Find Screens

By | August 6, 2014

From the Find screens in Sage CRM, the cursor defaults to the Keyword Search field. Refer below screenshot.
Find1
Recent question asked in one of the forum that if it can be manipulated in Sage CRM so that the cursor lands in a different field as a starting point.
New Stuff: Hide Export data option for Non admin users
Consider an example of Company Find screen in which we need to change the Cursor location to Company Name field. Follow the below mentioned steps to achieve this.
1) Login into Sage CRM.
2) Navigate to Administration | Customization |Company Entity.
3) Select Screens Tab.
4) Select CompanySearchBox from the list of screens.
5) Copy and Paste below code in the Custom Content section.
<script>
if (window.addEventListener)
window.addEventListener(“load”, DefaultCursor, false);
else if (window.attachEvent)
window.attachEvent(“onload”, DefaultCursor);
function DefaultCursor()
{
if(document.getElementById(‘comp_name’))
document.getElementById(‘comp_name’).focus();
}
</script>
Find2
6) Click on Save button.
Once this is done, navigate to find Company screen and you will observe that the Cursor location has been placed as default to Company Name as shown below.
Find3
Same manipulation can be configured for other entity find screens. You just need to change the field name as per requirement.
Also Read:
1) Swap Button image and button text Positions
2) Changing Link text of URL fields
3) Client Side API to hide and show Column of grid
4) Make Calendar Control visible in Sage CRM
5) Quick Tip: Hyperlinking inside Your Notes in Sage CRM