Hi, I recently added code to one of my pages. Everything appears and works fine in preview mode, but on the feedback site isn’t working. Is there something wrong with my code or is this to be expected? I have different buttons and HTML elements/boxes that are supposed to show and hide when different buttons are clicked.
$w.onReady(function () {
//TODO: write your page related code here...
});
export function BroadSenseButton1_click(event, $w) {
$w("#BroadSenseButton1").hide();
$w("#BroadSenseButton2").show();
$w("#BroadSenseHTML").show();
$w("#BroadSimButton1").show();
$w("#BroadSimButton2").hide();
$w("#BroadSimHTML").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1HTML").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2HTML").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaButton2").hide();
$w("#PanoramaHTML").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioButton2").hide();
$w("#RxStudioHTML").hide();
}
export function BroadSenseButton2_click(event, $w) {
$w("#BroadSenseButton2").hide();
$w("#BroadSenseButton1").show();
$w("#BroadSenseHTML").hide();
}
export function BroadSimButton1_click(event, $w) {
$w("#BroadSimButton1").hide();
$w("#BroadSimButton2").show();
$w("#BroadSimHTML").show();
$w("#BroadSenseButton1").show();
$w("#BroadSenseButton2").hide();
$w("#BroadSenseHTML").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1HTML").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2HTML").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaButton2").hide();
$w("#PanoramaHTML").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioButton2").hide();
$w("#RxStudioHTML").hide();
}
export function BroadSimButton2_click(event, $w) {
$w("#BroadSimButton2").hide();
$w("#BroadSimButton1").show();
$w("#BroadSimHTML").hide();
}
export function PANACEAv1Button1_click(event, $w) {
$w("#PANACEAv1Button1").hide();
$w("#PANACEAv1Button2").show();
$w("#PANACEAv1HTML").show();
$w("#BroadSenseButton1").show();
$w("#BroadSenseButton2").hide();
$w("#BroadSenseHTML").hide();
$w("#BroadSimButton1").show();
$w("#BroadSimButton2").hide();
$w("#BroadSimHTML").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2HTML").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaButton2").hide();
$w("#PanoramaHTML").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioButton2").hide();
$w("#RxStudioHTML").hide();
}
export function PANACEAv1Button2_click(event, $w) {
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1HTML").hide();
}
export function PANACEAv2Button1_click(event, $w) {
$w("#PANACEAv2Button1").hide();
$w("#PANACEAv2Button2").show();
$w("#PANACEAv2HTML").show();
$w("#BroadSenseButton1").show();
$w("#BroadSenseButton2").hide();
$w("#BroadSenseHTML").hide();
$w("#BroadSimButton1").show();
$w("#BroadSimButton2").hide();
$w("#BroadSimHTML").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1HTML").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaButton2").hide();
$w("#PanoramaHTML").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioButton2").hide();
$w("#RxStudioHTML").hide();
}
export function PANACEAv2Button2_click(event, $w) {
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2HTML").hide();
}
export function PanoramaButton1_click(event, $w) {
$w("#PanoramaButton1").hide();
$w("#PanoramaButton2").show();
$w("#PanoramaHTML").show();
$w("#BroadSenseButton1").show();
$w("#BroadSenseButton2").hide();
$w("#BroadSenseHTML").hide();
$w("#BroadSimButton1").show();
$w("#BroadSimButton2").hide();
$w("#BroadSimHTML").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1HTML").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2HTML").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioButton2").hide();
$w("#RxStudioHTML").hide();
}
export function PanoramaButton2_click(event, $w) {
$w("#PanoramaButton2").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaHTML").hide();
}
export function RxStudioButton1_click(event, $w) {
$w("#RxStudioButton1").hide();
$w("#RxStudioButton2").show();
$w("#RxStudioHTML").show();
$w("#BroadSenseButton1").show();
$w("#BroadSenseButton2").hide();
$w("#BroadSenseHTML").hide();
$w("#BroadSimButton1").show();
$w("#BroadSimButton2").hide();
$w("#BroadSimHTML").hide();
$w("#PANACEAv1Button1").show();
$w("#PANACEAv1Button2").hide();
$w("#PANACEAv1HTML").hide();
$w("#PANACEAv2Button1").show();
$w("#PANACEAv2Button2").hide();
$w("#PANACEAv2HTML").hide();
$w("#PanoramaButton1").show();
$w("#PanoramaButton2").hide();
$w("#PanoramaHTML").hide();
}
export function RxStudioButton2_click(event, $w) {
$w("#RxStudioButton2").hide();
$w("#RxStudioButton1").show();
$w("#RxStudioHTML").hide();
}
Feedback Site:
Preview Mode in Editor: