[GH-ISSUE #1793] How do I get value I choose in custom_html_inputs #1509

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

Originally created by @Konstantin-G on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1793

How do I get value I choose in custom_html_inputs in /examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino
custom_html_inputs.getValue() does not work

const char *bufferStr = R"(
  <!-- INPUT CHOICE -->
  <br/>
  <p>Select Choice</p>
  <input style='display: inline-block;' type='radio' id='choice1' name='program_selection' value='1'>
  <label for='choice1'>Choice1</label><br/>
  <input style='display: inline-block;' type='radio' id='choice2' name='program_selection' value='2'>
  <label for='choice2'>Choice2</label><br/>

  <!-- INPUT SELECT -->
  <br/>
  <label for='input_select'>Label for Input Select</label>
  <select name="input_select" id="input_select" class="button">
  <option value="0">Option 1</option>
  <option value="1" selected>Option 2</option>
  <option value="2">Option 3</option>
  <option value="3">Option 4</option>
  </select>
  )";
Originally created by @Konstantin-G on GitHub (Jan 21, 2025). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1793 How do I get value I choose in **custom_html_inputs** in /examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino `custom_html_inputs.getValue()` does not work ``` const char *bufferStr = R"( <!-- INPUT CHOICE --> <br/> <p>Select Choice</p> <input style='display: inline-block;' type='radio' id='choice1' name='program_selection' value='1'> <label for='choice1'>Choice1</label><br/> <input style='display: inline-block;' type='radio' id='choice2' name='program_selection' value='2'> <label for='choice2'>Choice2</label><br/> <!-- INPUT SELECT --> <br/> <label for='input_select'>Label for Input Select</label> <select name="input_select" id="input_select" class="button"> <option value="0">Option 1</option> <option value="1" selected>Option 2</option> <option value="2">Option 3</option> <option value="3">Option 4</option> </select> )"; ```
kerem closed this issue 2026-02-28 01:30:21 +03:00
Author
Owner

@Konstantin-G commented on GitHub (Jan 27, 2025):

this is working: wm.server->arg("input_select");

<!-- gh-comment-id:2617015550 --> @Konstantin-G commented on GitHub (Jan 27, 2025): this is working: wm.server->arg("input_select");
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#1509
No description provided.