Nintex Form, Checkbox (Multiple-Selection), is there any way to resize control height using jquery or CSS?


Badge +3

Nintex Form, Checkbox (Multiple-Selection), is there any way to resize control height using jquery or CSS?

I have tried with below css on panel of that control, but not working.

[if IE 9]  [endif] 

.mycustomreportname {
overflow:auto;
height: 200px;
}

12 replies

Userlevel 5
Badge +14

do you mean to increase number of items shown?

see -  

Badge +3

Below is newform screenshot, I have total 107 items in Checkbox (Multiple-Selection), hiding 106 items using jquery. showing only one item. But height is not reduced.

217251_pastedImage_1.png

Userlevel 5
Badge +14

is it a choice or lookup control?

couldn't you filter provided options by a (cascaded) filter or view?

that would be supported approach.

what's your exact business case? why do you need to hide all but one option?

Badge +3

It's Lookup Control only.

I need to apply so many filters need to apply on this Loopup, so using spservices getting data and based on data. i am hiding items using below code. I am able to hide but space is problem.

NWF.FormFiller.Events.RegisterAfterReady(function () {
referenceinput();
});

function referenceinput()
{
console.log("new loop start");
if (arrHideReportNames.length > 0)
{
console.log(arrHideReportNames);
NWF$.each($("input:checkbox"), function(){
var vtblrow = NWF$(this).closest('tr');
var vrptname = vtblrow.find('span').text();
//console.log(vrptname);

if (jQuery.inArray(vrptname, arrHideReportNames) > -1)
{
vtblrow.hide();
}


});
}
}

Userlevel 5
Badge +14
I am able to hide but space is problem.

nintex can not know of aside javascript manipulations, so it can not resize based on that.

you may try to call following at the end of your code, but I'm not very sure it will work

NWF.FormFiller.Functions.ProcessOnChange(ctrl);

what is 'arrHideReportNames'? where do you get it from?

could it be applied as a filter as I mentioned above?

Badge +7

What about a SQL action control. Put your lookup data into a sql table and pass the relvant paramaters into that.

Badge +3

arrHideReportNames - it's javasript array, list of item names (2017,2018,.... - total 106 item ) to hide in control.

Badge +3

We don't have database access. Solution should be using OOTB only.

Badge +3
NWF.FormFiller.Functions.ProcessOnChange(ctrl);

Not working, same space issue.

Badge +7

Ok so what is your criteria that you are passing and your list that you are filtering?

Badge +3

Using spservices filtered list of report names in custom list. push to javascript array. based on array looping and hiding item in Loopup Field (Checkbox - multi select).

Userlevel 5
Badge +14

ok, then try following

NWF.FormFiller.Resize.RepositionAndResizeOtherControlsAndFillerContainerHeight(ctrl,1/1000,1/1000,NWF.FormFiller.Functions.GetFormFillerDiv())‍‍;

Reply