Moving these variables outside of the "input" function so they can be reused across fields.
add support for custom attributes to all widgets