Checkbox option is not working
-
I have options framework installed – and I’ve noticed that a particular checkbox will work as expected in the admin section, however the value for the checkbox will ALWAYS return “1” on the front-side. I’ve added the code for that checkbox below. Of note – I have another checbox, nearly identical set up directly below the one in question and it works fine. Any ideas?
CODE:
//Live Streaming options heading $options[] = array( "name" => "XYZ", "type" => "heading"); //Live Streaming switch $options[] = array( "name" => "XYZ Switch", "desc" => "Make streaming mode active", "id" => "xyz_switch", "std" => "0", "type" => "checkbox"); //Streaming information $options[] = array( "name" => "XYZ Filename", "desc" => "Enter the YouTube filename to embed the stream - it usually appears after \"watch?v=\"", "id" => "xyz_file", "std" => "", "type" => "text"); //Streaming header/title $options[] = array( "name" => "XYZ Header/Title", "desc" => "Enter the title of the livestream. WARNING: Text which is too long will not be displayed!", "id" => "xyz_title", "std" => "", "type" => "text"); //Streaming description $options[] = array( "name" => "XYZ Description", "desc" => "Enter the description of the livestream. WARNING: Text which is too long will not be displayed!", "id" => "xyz_desc", "std" => "", "type" => "text");
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Checkbox option is not working’ is closed to new replies.