How to disable form focus for a specific form?

MG Casey
Mega Sage

OK I know there is a system property to disable form focus:

http://wiki.servicenow.com/index.php?title=Modifying_Form_Focus

However, I don't want to disable it for my entire instance, just a specific form. (I'd like users to be able to scroll immediately upon loading of the form without the cursor being in the first writable field.)

Any ideas?

1 ACCEPTED SOLUTION

geoffcox
Giga Guru

You can remove focus in an onLoad client script for that form (use the "blur" method).


View solution in original post

6 REPLIES 6

geoffcox
Giga Guru

You can remove focus in an onLoad client script for that form (use the "blur" method).


I was able to take a look at this again, and that did provide me my solution:



function onLoad() {


    //Type appropriate comment here, and begin script below


     


      setTimeout("var refocus = g_form.getElement('u_incident_rtsd.contact_type');refocus.blur();",0);



}



Thanks!