[GH-ISSUE #1441] custom_text_box.getValue() returns length of the field, not the contents #1231

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

Originally created by @MikeyMoMo on GitHub (Jun 27, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1441

WiFiManagerParameter custom_text_box("my_text",
                                       "Enter your string here",
                                       "default string", 50);

then

wfm.addParameter(&custom_text_box);

then

Serial.println(custom_text_box.getValue());

prints "50"

I can't find the code in the library that is handling this. Must be there somewhere!

Originally created by @MikeyMoMo on GitHub (Jun 27, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1441 ``` WiFiManagerParameter custom_text_box("my_text", "Enter your string here", "default string", 50); ``` then ` wfm.addParameter(&custom_text_box);` then ` Serial.println(custom_text_box.getValue());` prints "50" I can't find the code in the library that is handling this. Must be there somewhere!
kerem closed this issue 2026-02-28 01:29:09 +03:00
Author
Owner

@MikeyMoMo commented on GitHub (Jun 27, 2022):

It was bad sample code from a web site that seemed to be an expert. Never mind!

<!-- gh-comment-id:1166732306 --> @MikeyMoMo commented on GitHub (Jun 27, 2022): It was bad sample code from a web site that seemed to be an expert. Never mind!
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#1231
No description provided.