Open edpgcooper opened 3 months ago
Figured it out, probably obvious to anyone who's worked with HTML stuff on ESP before.
void saveParamCallback(){
String selectedOption = "None";
Serial.println("[CALLBACK] saveParamCallback fired");
selectedOption = wm.server->arg("input_select");
Serial.println("Selected option: " + selectedOption);
}
I think the param child class lets you automatically set args to param values. I totally forget how this works..
I am trying to make a couple of drop-down lists for configuring my device. I followed the example here OnDemandConfigPortal.ino
I can present a drop-down of the four options as provided in the example, but I cannot work out how to read the selected option back.
My callback is
This results in this output, note I have selected Option 1