WebConfig icon indicating copy to clipboard operation
WebConfig copied to clipboard

Modify a checkbox after clicking SAVE

Open acca84 opened this issue 3 years ago • 1 comments

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

acca84 avatar Aug 10 '22 15:08 acca84

Sorry, i just found : i had to add conf.writeConfig(); ! If that can help ;)

acca84 avatar Aug 10 '22 16:08 acca84