XF 2.0 On/Off Checkbox with Text help!

[xFv]

Well-known member
Hello!
I am new to learning arrays and I need a little advice on using a on/off checkbox with textbox option.
I know to use an array because I looked at options that call for this.

Say if I have a option ID of ''footer_copyright" and in the options, I list the type as ''On/Off Checkbox with Text",
this is what I have in format parameters:
Code:
onoff=enabled
value=copyright
.
And if Default Values:
Code:
{"enabled":"","copyright":""}
.
And in Array Sub options:
Code:
enabled
copyright
.
And the Validation callbacks are empty as they are in the option that I am following from.
I can get the word "array" printed to the screen where I need the copyright to display, but thats it.
Is there something I am missing, like a php file with an array in it?
Any Help is Much Appreciated!
 
Last edited:
You haven't shown the code you're using to access the option, but I have a guess of what it is. Dump out the value and I expect you'll see what you need to do:
Code:
{{ dump($yourVariableHere) }}
 
Back
Top Bottom