Radio Button default on
#1
Guys,

I would like to add radio button in customsettings.xml and I would like it to be ON (selected) by default. Is it possible?

Or let me ask this in other way - I would like to add option for user to disable submenu item if choose so. So, it should be ON by default so that item can appear in submenu. Using radio button in a way that user select it in order to disable item seams awkward to me.
My skins:

Amber
Quartz

Reply
#2
Just add this to the button control -

PHP Code:
<selected>!Skin.HasSetting(YOUR_SETTING_HERE)</selected
Reply
#3
Hitcher Wrote:Just add this to the button control -

PHP Code:
<selected>!Skin.HasSetting(YOUR_SETTING_HERE)</selected

..and flip RadioButtonNF.png & RadioButtonFO.png

Thanks.
My skins:

Amber
Quartz

Reply
#4
You don't need to change anything else because that will default the button to ON when first used.
Reply
#5
You're right again. Xbmc restart is recommended :-)
My skins:

Amber
Quartz

Reply

Logout Mark Read Team Forum Stats Members Help
Radio Button default on0