I'm on version 2016, if that matters.
I have a javascript function that I need called every time a field on the form gains focus.
My end goal is to make it so if a lookup field gains focus, the text is auto-highlighted so there's no need to click it again before editing.
I just need to know how to get a function called each time a field gains focus on the form and can take it from there. Thanks.