Validate a view only if it is visible and enabled.