better field/service name retrieval for inputs and buttons