Onimua
Well-known member
I have the following code:
I've tried xen:textbox, xen:select, xen:combobox, xen:upload, and xen:spinbox and they all appear correctly in the above example except for xen:checkbox and xen:radio. Is there a reason why the last two I mentioned don't show up at all? I'm trying to add a checkbox that would be enabled along with the other form elements when the first radio button is selected.
Another thing I'm trying to do but doesn't seem possible is to use xen:checkboxunit to try have have a checkbox that when checked it, there would be a sub-set of options to select/fill that will be enabled. It looks like XenForo doesn't let you do this as you receive the error: Found unexpected tag 'checkboxunit' as a disabled control. I guess this isn't possible to do either?
Using XF 1.1.0 Beta 3.
HTML:
<xen:radiounit label="Enable option" name="enableOption">
<xen:option name="option1" label="Turn on">
<xen:spinbox name="maximumtodisplay" value="5" />
<xen:checkbox label="checkbox" name="checkboxame" />
</xen:option>
<xen:option name="option2">Turn off</xen:option>
</xen:radiounit>
Another thing I'm trying to do but doesn't seem possible is to use xen:checkboxunit to try have have a checkbox that when checked it, there would be a sub-set of options to select/fill that will be enabled. It looks like XenForo doesn't let you do this as you receive the error: Found unexpected tag 'checkboxunit' as a disabled control. I guess this isn't possible to do either?
Using XF 1.1.0 Beta 3.