[GH-ISSUE #1639] add setCustomHtml(const char* custom) -> WifiManagerParameter #1393

Open
opened 2026-02-28 01:29:54 +03:00 by kerem · 1 comment
Owner

Originally created by @knylbyte on GitHub (Jul 14, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1639

Is there a way to mark checked boxes?
For example I have some const parameters which can only be clicked.

const char* checkbox_unchecked = "type=\"checkbox\"";
const char* checkbox_checked   = "type=\"checkbox\" checked";

const char* tu_berlin_ip    = "130.149.7.7";

tu_berlin_ntp_server WiFiManagerParameter;
new (&tu_berlin_ntp_server) WiFiManagerParameter("tu_berlin_ntp_server", "TU Berlin", tu_berlin_ip, strlen(tu_berlin_ip), checkbox_unchecked, WFM_LABEL_AFTER);

At the momemt I see no chanced to see if the marker was set or not. Correct me if I am wrong but it would be nice to edit the custom html part in the callBack function. But there is also a issue with this values, because if the user doesn't click on an value it will be deleted.
I've discribed it here: #1111

Originally created by @knylbyte on GitHub (Jul 14, 2023). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1639 Is there a way to mark checked boxes? For example I have some const parameters which can only be clicked. ```cpp const char* checkbox_unchecked = "type=\"checkbox\""; const char* checkbox_checked = "type=\"checkbox\" checked"; const char* tu_berlin_ip = "130.149.7.7"; tu_berlin_ntp_server WiFiManagerParameter; new (&tu_berlin_ntp_server) WiFiManagerParameter("tu_berlin_ntp_server", "TU Berlin", tu_berlin_ip, strlen(tu_berlin_ip), checkbox_unchecked, WFM_LABEL_AFTER); ``` At the momemt I see no chanced to see if the marker was set or not. Correct me if I am wrong but it would be nice to edit the custom html part in the callBack function. But there is also a issue with this values, because if the user doesn't click on an value it will be deleted. I've discribed it here: #1111
Author
Owner

@Laxilef commented on GitHub (Oct 8, 2023):

There are changes?

<!-- gh-comment-id:1752157036 --> @Laxilef commented on GitHub (Oct 8, 2023): There are changes?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1393
No description provided.