I have a SiteMap frame as shown below. It uses the state of a Switch Item as the ‘visibility’ tag for a respective SetPoint item. The visibility switch does indeed work (see screenshots below). However my problem is that under some circumstances(*) the SetPoint appears visible but its up/down buttons are disabled. In those circumstances, toggling the Switch Item that triggers the visibility tag, will re-enable the up/down buttons; (this is my current work around). But I would like to ensure that under all circumstances if the Item is visible, it is also enabled.
(*) as far as I can tell, the circumstances when the item is visible but not enabled are, on system start up, or when a new browser re-loads the SiteMap. So I am thinking that there may be some script code in the SiteMap page (either client side or server side) that has a bug whereby the buttons are not enabled until the visibility Switch Item code has executed. Or something like that. Any thoughts?
Frame item=g_Upstairs_Temperature {
Switch item=Upstairs_Master_Thermostat_Occupancy_Mode_Present
Text item=Radiator_Heating_Valve_Open
Text item=Front_Bedroom_Radiator_Room_Temperature
Setpoint item=Front_Bedroom_Radiator_Target_Temperature minValue=15 maxValue=27 step=1 visibility=[Upstairs_Master_Thermostat_Occupancy_Mode_Present==ON]
}