CRM On Demand - Administration (MOSC)

MOSC Banner

jscript not working

edited Dec 7, 2012 5:57AM in CRM On Demand - Administration (MOSC) 4 commentsAnswered
We need to be able to standardize email address text value format (full UPPER of full LOWER) at time of input, in order for field to be properly be used as indexed field during searches. We came across the following code to be appplied from the web applet configuration:

<script>
function uppercaseInput()
{
    var INPUT_ID = "LeadCreateEditForm.Company Name";

    var elem = document.getElementById(INPUT_ID);
    if( elem != null )
    {
        elem.style.textTransform = "uppercase";
        try {
            elem.addEventListener('keyup',function (e) { INPUT_ID.value=this.value.toUpperCase();}, true);
            }
        catch(e){
             elem.attachEvent('onkeyup', function (e) { INPUT_ID.value=this.value.toUpperCase(); });
         }
    }
}

setTimeout ( "uppercaseInput()",2000 );

</script>

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center