Detect if form field and work with that