Activate UI Input Field using OnTriggerEnter

function OnTriggerEnter (object : Collider){
if(object.CompareTag(“Player”)){
//Debug.Log(“I’m here!!”);
lInputField.Select();
lInputField.ActivateInputField();
}
}
I’m trying to activate a UI Input field by entering an OnTriggerEnter area. I want it turned off until the Player is in the area. Is this possible.? Using JS.

i think it is the L in front of the InputField you can try but yeah idk