AnsweredAssumed Answered

Resizing form height based on visible panels using JavaScript

Question asked by scrowley on May 26, 2017
Latest reply on Aug 4, 2017 by N M

Hello,

 

I have a form with multiple panels. I am using javascript to set the display to none of these panels, document.getElementsByClassName(AllPanels[i])[0].style.display = "none"; Then when a checkbox is clicked it opens the desired panel, document.getElementsByClassName(panel.style.display = "block";

 

Now I want the form to resize so that there isn't a large space between the checkboxes (I attached an image). 

 

From reading around it seems that I might be able to use this:  NWF.FormFiller.Functions.ProcessFillerControl(NWF$('.labelName'), NWF$('.formFillerDiv') )  but I havent gotten it to work.

 

Thank you

Sean

Attachments

Outcomes