tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.62k stars 1.98k forks source link

No need to display static IP fields on WIFI connection page -Help #1771

Open gpena208777 opened 2 weeks ago

gpena208777 commented 2 weeks ago

Hello, I am trying to hide as many fields and options as I can for the end user. When the user clicks and enters their wifi credentials, I don't want the other IP address fields underneath to display. Any way to hide them?

tablatronix commented 2 weeks ago

Thats the default, there is a showipfields setting

gpena208777 commented 2 weeks ago

Thats the default, there is a showipfields setting

wifiManager.setShowStaticFields(false);

Should this be false?

gpena208777 commented 2 weeks ago

Bump

tablatronix commented 2 weeks ago

Are you doing something with static ip in your code that would cause them to show? Cause then yes, what do the examples do?

gpena208777 commented 1 week ago

Are you doing something with static ip in your code that would cause them to show? Cause then yes, what do the examples do?

My code calls for a static IP to be set could this be why ?

tablatronix commented 1 week ago

Yeah if you use static in code it automatically shows in web.

you can add that setShowStaticFields(boolean alwaysShow); as falss