mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1545] How to require user enter value for a parameter via HTML? #1319
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pomplesiegel on GitHub (Jan 10, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1545
Hello! Great library - really enjoying it!
For our device setup / registration we need the user to enter their email, as shown below. We would like this field to be required, so the user can't press save without entering a value for this space, preferably with some sort of email syntax validation checking (if that's a built in HTML feature).
I was able to configure other aspects of the captive portal page, but couldn't find an easy way to make a parameter entry required by the user (as a HTML change). Is there an easy way to do this through the current API?
Thank you so much!
@pomplesiegel commented on GitHub (Jan 11, 2023):
Nvm, figured it out from other issues (sorry missed this before due to slightly different terms for the same thing).
Issue: https://github.com/tzapu/WiFiManager/issues/736
FYI this was my ultimate solution's syntax:
Changing the type to "email" for minor syntax-checking (ain't perfect, but still something), and the required field so the user can't hit "save" without populating this field.
Thank you!