Skip to main content
Nintex Community Menu Bar

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

  • July 24, 2018
  • 12 replies
  • 54 views

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • July 25, 2018

do you mean to increase number of items shown?

see -  


Forum|alt.badge.img+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


Forum|alt.badge.img+14
  • Scholar
  • July 26, 2018

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?


Forum|alt.badge.img+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();
}


});
}
}


Forum|alt.badge.img+14
  • Scholar
  • July 26, 2018
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?


Forum|alt.badge.img+7
  • July 26, 2018

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


Forum|alt.badge.img+3

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


Forum|alt.badge.img+3

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


Forum|alt.badge.img+3
NWF.FormFiller.Functions.ProcessOnChange(ctrl);

Not working, same space issue.


Forum|alt.badge.img+7
  • July 26, 2018

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


Forum|alt.badge.img+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).


Forum|alt.badge.img+14
  • Scholar
  • July 27, 2018

ok, then try following

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