Sunday, November 14, 2010

Disable autocomplete fields on the Form using javascript in ADF

Add below lines at the end of each jsff page.
 <trh:script id="trh1">
function disableAutoCompleteFormData()
{
   for(i=0; i!=document.getElementByTagName('FORM').length;i++){
 document.getElementsByTagName("FORM")[i].setAttribute('autocomplete','off');
   }
}
 </trh:script>

1 comment:

  1. Can you kindly post a full jsp? I cannot have my page to work with your code.

    Thanks,
    Samson Fu

    ReplyDelete