Only show value input when needed