Sets the autocomplete html form attribute depending on the environment.