Jump to content

Reverse switch (type "switch")


Recommended Posts

Hy, i  have the following code in my addon to make a switch at the config page:

[
"type" => "switch",
"label" => $this->l("contact form notification"),
"name" => "SWITCH_CONTACT_FORM",
"reverse" => false,
"choices" => [
"ON" => true,
"OFF" => false,
],	
],	

Now the issue is: Switch on = No, switch off is Yes. 

I tryd switching (Ha gotem) the boolean value (ON => false, OFF = true) but that has no effect.

 image.png.2d3122a5f117cd9d9cc6dc610b7bdaf5.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...