WebConfig
WebConfig copied to clipboard
Modify a checkbox after clicking SAVE
Hello, first, thanks for your great work !
I'd like to launch a command if a checkbox is checked and the SAVE button clicked, after that, i'd like the check box to be unchecked, what i do is :
in handleroot() :
if (conf.values[5].toInt()==1){ launchcommand(); conf.setValue("MAJEF","0"); }
my check box is filed number 5, with name MAJEC
it unchecks the checkbox, but it it not save after reboot.
Is that possible to do that please ? Thanks
Sorry, i just found : i had to add conf.writeConfig(); ! If that can help ;)