Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Is it possible to have a dropdown menu in config portal? #1104

Closed
2 of 4 tasks
noelvissers opened this issue Aug 2, 2020 · 4 comments
Closed
2 of 4 tasks

Q: Is it possible to have a dropdown menu in config portal? #1104

noelvissers opened this issue Aug 2, 2020 · 4 comments
Labels
enhancement Feature Request

Comments

@noelvissers
Copy link

noelvissers commented Aug 2, 2020

Basic Infos

Hardware

WiFimanager Branch/Release:

  • Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • ESP32

Description

Since it is possible to have custom parameters in the config portal, I was wondering if there's a way to have them set as dropdown menu, so i can't get an invalid input. Example: I want to have the user select a true or false setting and not let them fill in some random word.

If this is possible, is there any example or documentation of it? Would be nice to include it in the custom parameters example since it uses 3x the same method now.

***Edit:
It seems like it is possible after some google searches. Since there are three examples, it would be nice to have 1 normal one, 1 checkbox (and or radio buttons) and 1 dropdown menu. I know custom html is an option in these parameters, but I'm a total noob with html, especially integrating it with c++ (and I think im not the only one).

I also found this issue, which is basically the same question: #805, but its from a year ago and still open.

@noelvissers noelvissers changed the title Q: Is it possible to have a selectable dropdown menu in config portal? Q: Is it possible to have a dropdown menu in config portal? Aug 2, 2020
@saul-hdez
Copy link

saul-hdez commented Jun 13, 2021

Did you solve it? I need this exact thing and so far i can create the drop down with custom html but have not found a way to access the values

@tablatronix
Copy link
Collaborator

tablatronix commented Jun 13, 2021

#1158

It is possible, but you would have to handle it mostly outside of wm, I was looking into how to add the ability for wm to wrap the arguments for you via params, but nothing so far has been done, i have a test somewhere I will look at where i left off.

@tablatronix tablatronix added the enhancement Feature Request label Jun 13, 2021
@FLYINGSC0T
Copy link

I was also looking for a solution to add dropdown to WiFiManager.
You might find these two links useful:

https://github.com/witnessmenow/ESP32-WiFi-Manager-Examples
https://www.youtube.com/watch?v=Errh7LEEug0

As yet I haven't tried it but hope it might help.

@tablatronix
Copy link
Collaborator

#1365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

4 participants