It's not possible for items in a submenu to exhibit this behavior. Submenus can have submenus but if they do, they can't toggle their own values too (because SET goes into the submenu and Q goes back out). You have to make a submenu item for enabling/disabling the feature.
mymenu = menu.new
{
parent = "Intervalometer",
name = "Whatever",
update = function(self) return self.submenu["Enabled"].value end
submenu =
{
{
name = "Enabled",
choices = {"Off","On"},
},
{
name = "Dec. Value",
min = 0, max = 500,
unit = UNIT.DEC,
},
{
name = "Time Value",
min = 0, max = 500,
unit = UNIT.TIME,
}
}
}