cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Re: Resize a Repeating Section After Hiding Panels inside the Section

Jump to solution

Hi @MegaJerk,

I added the line of code you suggested but I am not sure I added it in the correct place in the Custom JavaScript window. The footer renders correctly but then the

 

Here is what I pased in below the previous code you posted...

NWF$([data-controlname='FooterPanel']).css({top: TabPanel.position.top + TabPanel.outerHeight() + 4}); 

You may notice I added an "e" at the end of "controlname" as I assumed it was a typo. I put the line "after" all of the orther code you posted. Sorry if this was in error as I am not great with JS. The end of my code block looks like this...

/*  
    When the Form loads, but before it's visible, we need make sure that the Repeating Section
    is correctly sized. Specifically, we need to make sure that the Panel where information *might*
    reside on a Task form but not on an Edit Form, has been hidden and that its height has been
    subtracted from the rows it is contained in, as well as the canvas.
    The following For Each loop will do just that...
  */  
  NWF.FormFiller.Events.RegisterBeforeFillerVisible(function() {
    NCU.FormFunctions.hideRepeatingSectionPanels(NCU.FormVariables.hiddenRepeaterPanelClasses);  
  });  NWF.FormFiller.Events.RegisterAfterReady(function () {
    outerDiv.data("outerDivHeight", outerDiv.height());
    NCU.FormVariables.pageIsReady = true; 
  });  return NCU;
}(NCU || {}));

NWF$([data-controlname='FooterPanel']).css({top: TabPanel.position.top + TabPanel.outerHeight() + 4}); 

Additionally, I changed the name of the panel at the bottom of the form with the "Current State" controls and the Update button to "FooterPanel". I also named the CSS Class the same just in case that is what you meant. :)

 

 

0 Kudos
Reply
Automation Master
Automation Master

Re: Resize a Repeating Section After Hiding Panels inside the Section

Jump to solution

I mean. I just posted that as an 'off the top of my head' idea about what would need to be done, and it was not something that I had implemented or tested (I posted it before we had our more indepth conversation). 

Ultimately it would need to be placed inside of *some* event that fires every time the form Controls get repositioned because, I'd imagine, the Footer would need to move based off of the current size of the Form Canvas (which is dynamic because it's constantly resizing to fit the contents which are being shown / hidden). 

Long story short: that's why it had a typo ;) It was completely just an idea! 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Resize a Repeating Section After Hiding Panels inside the Section

Jump to solution

Hi @MegaJerk thanks for the contribution, I tried this solution with O365 but I only get the page not to be rendered at all. Is there is a way to make this resize work on O365? Any help is appreciated.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Resize a Repeating Section After Hiding Panels inside the Section

Jump to solution

I have never used O365 in any capacity unfortunately, so I have no idea of what could help you to solve your problem. I'm not entirely even sure what 'type' of Nintex Form is available for that platform. Do they have classic with javascript customization?

Additionally this is a topic that I will need to come back to at a later date (discussed privately already with OP), as I am currently too busy with work to create a solution that is more dynamic. 

For now I would recommend starting a new topic, but at some point I'll be able to come back to this and cook something up that might be useful. 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Resize a Repeating Section After Hiding Panels inside the Section

Jump to solution

Hi @MegaJerk  thanks for the quick response.

 

O365 does provide classic form design with javascript, in fact some solutions posted at this board have help me with O365 issues. Thanks anyway I'll post my question on the proper board, goodbye and take care.

0 Kudos
Reply