1) In the Options menu, I'd like to try and see if the following is possible. I provide a checkbox, and set it do disabled by default. Below it, I would like to add a set of options that would only be relevant if the checkbox above is checked. Ideally, I would hide them altogether, or disable them to visually show they are irrelevant until the ceckbox is turned on.
Is that possible?
2) Again, in the options, I would like to do the following. I fire off a query towards the database, and it comes back with a few results. I have seen and used the code by Lawrence as a basis, and use Lawrence's code pretty much unedited for a different part of the add-on.
However, rather than displaying a list of checkboxes, I'd like to do something along the following lines in the current part of the add-on that I'm working on. My query has one column detailing CSS code, and another one providing a name.
I want to pass the array returned by my query to a template, and display the CSS as a label, and then have a textbox with a value of the second column, that can be edited by the user. I'll need to store whatever values the user enters for later use.
How would I go about achieving that?
Thanks in advance