I want to set the focus on a field when the view is displayed. So, I have:
Where the field is
<crmic:inputField id = "IDNumber" width = "100%" maxlength = "40" value = "//Customer/IDNUMBER" />
document.getElementById("IDNumber").focus() does not work, but the version with X1_X3_X12_X13_X14_IDNumber does (I looked at the source of the page to find this id of the field).
However, I feel it is not the right thing to do even if it works.
Any ideas on how I can properly use the id of the field to make it work.