AnsweredAssumed Answered

Issue with hiding panels on form load

Question asked by csrameneni on Feb 10, 2016
Latest reply on Feb 10, 2016 by csrameneni

Hi Friends,

I facing some spacing issues while using code to hide the panels. I have two panels panelS1 and panelS2 and using this code, I'm hiding both the panels on form load. Based on the choices I selected, the

 

NWF.FormFiller.Events.RegisterAfterReady(function()

{

NWF$(".panelS1").hide();

NWF$(".panelS2").hide();

 

 

NWF$("#"+myChoices).change(function()

{

var selectedChoice = NWF$("#"+myChoices + " input:checked").val();

switch (selectedChoice)

{

case "Level 1":

NWF$(".panelS1").show();

NWF$(".panelS2").hide();

break;

case "Level 2":

NWF$(".panelS1").show();

NWF$(".panelS2").show();

break;

}

});

});

 

Even though the panels are hidden on the form load, I still see the space that was meant for the panels. Is there something missing in the code?

Outcomes