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

How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

Hello,

I have a panel with label inside it which is supposed to display different messages based on other field selection on form. Although panel is set to resize automatically, when value of the label inside the panel is set via javascript, it shows scrollbar instead resizing to show whole message. Can anyone help me with this issue?

0 Kudos
Reply
9 Replies
emha
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

you can achieve that by a following call

NWF.FormFiller.Functions.ProcessFillerControl(NWF$('.theLabelClass'), NWF$('.formFillerDiv') ) 
Reply
abhay_nigade
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

That was it. Thank you very much Marian.

0 Kudos
Reply
franco89
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

Hi Marian,

How would I modify this to work in my scenario below. I can't seem to get the space to grow based on how big the table is in the multiple lines of text control.

0 Kudos
Reply
emha
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

please post new question.

it's completelly diferent type of control, so it might need completelly different approach.

futhermore, afaik, multiline text control tends to show scrollbars in new/edit mode instead of resizing itself. so, I'm not sure whether it will be (easily) achievable.

0 Kudos
Reply
anwaar
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

Hi Marian, in my case I have two panels inside the inner panel I set a tables that built using javascript the number of table depend on the number of row in the repeating section. Where and how can I call this function to prevent scrollbar to appear when the number of tables become more than the height of the panel ?

0 Kudos
Reply
emha
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

I'm sorry ‌ I do not follow your setup.

can you create new question and post some examples/screenshots?

what you mean with "tables"? is it repeating section? how "tables" are related to panels?

please explain all these in new question.

0 Kudos
Reply
anwaar
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

Thanks for your consideration.

Please find the attached picture that has a screenshot with explanation for my issue. I tried to set the height for the panel dynamically according to number of rows . I got the number of item in the collection variable then multiply this number with the height of table then set the height of panel according to that height like this :

var height = collVar.length ;

document.getElementsByClassName("PanelClass").style.height=Classheight+ 'px';

but this solution didn't work.

Thanks again.

Reply
emanabdelhalim
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution

i try this but not work for me.I have label which its value set by JavaScript on run-time and this label inside a panel which also auto resized 

NWF.FormFiller.Events.RegisterAfterReady(function () {NWF.FormFiller.Functions.ProcessFillerControl(NWF$('.attachmentField'), NWF$('.formFillerDiv') ) ;
});

0 Kudos
Reply
emha
Nintex Newbie

Re: How to Resize Panel dynamically when fields inside are set via javascript

Jump to solution
0 Kudos
Reply