Add form alterations to hide widget when it isn't needed.