Retrieve field element by selector

first search in the form if something is found using the selector, otherwise search the entire document