Hi,
I wanted to know how to set the focus of the cursor to specific page item during page load.
I tried with below appraoch -
I set "" to => onLoad="first('P19_PATIENT_NAME')"
Added below function to HTML Header -
function first(field1)
{
if(document.getElementById(field1))
{
var theField = document.getElementById(field1);
if((theField.type!="hidden")&&(!theField.disabled)&&(theField.value!="NULL"))
{
theField.focus();
}
return true;
}}
Page attribute's Cursor Focus is "First item on page"
However, when page loads, cursor is focusing on first item of the page. Can someone help me on this. (Apex 4.2.6) Thanks,
-Anand