This function searches all screen fields for the given search string. The results are returned as an array.
Parameters:
- search string - the text to search for on the screen
- exact match - optional parameter that specifies whether the search must find an exact match or a partial match; default is true (exact match)
Example:
The following code finds all date labels on the screen and attaches calendars to the fields immediately to the right of them.
var labels = find("Date:"); for (var i = 0; i < labels.length; i++) { var label = labels[i]; var elem = getRight(label); if (elem != null && elem.tagName == "INPUT") { attachCalendar(elem.id, "MM/DD/YY"); } }