tzapu / WiFiManager

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

Redirecting to startpage #1255

Open SmurfettesBrother opened 3 years ago

SmurfettesBrother commented 3 years ago

Hello, first of all, thank you very much for the great work.

I have the following problem: I added two customfields. Everything works great. But after pressing the save button I only get to see "saved" (saving the settings works fine) But after saving I want to go back to the start page to enter the WIFI settings. Is that possible? If so, how can I do this? Many Thanks

sstopkin commented 2 years ago

I have the same question. Also - is it possible to show all custom parameters on main portal page (not in setup)? Thank you.

upd - I found the answer on my second question. "wm.setParamsPage(false);" https://github.com/tzapu/WiFiManager/blob/master/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino#L137

tablatronix commented 2 years ago

Thats the default, or don't have param in your menu. Not sure what the question is.

you have to specifically set this option

sstopkin commented 2 years ago

@tablatronix the original question from @SmurfettesBrother is - how to redirect from param page to main page after pushing "save" button? Currently user getting a popup with text "saved" and nothing else happened. Is is possible to navigate the user to main page (ideally after 3-5 seconds of delay)?

Thank you.

jayvdw13 commented 1 year ago

any progress on this?

tablatronix commented 1 year ago

There is a test option boolean _showBack = false; // show back button or modify const char HTTP_PARAMSAVED[] PROGMEM = "<div class='msg S'>Saved<br/></div>";