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

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

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;
}
Labels: (1)
0 Kudos
Reply
12 Replies
emha
Nintex Newbie

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

do you mean to increase number of items shown?

see -  

0 Kudos
Reply
mohanaraovakamu
Nintex Newbie

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

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.

0 Kudos
Reply
emha
Nintex Newbie

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

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?

0 Kudos
Reply
mohanaraovakamu
Nintex Newbie

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

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();
}


});
}
}

0 Kudos
Reply
emha
Nintex Newbie

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

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?

0 Kudos
Reply
Stonehage
Nintex Newbie

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

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

0 Kudos
Reply
mohanaraovakamu
Nintex Newbie

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

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

0 Kudos
Reply
mohanaraovakamu
Nintex Newbie

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

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

0 Kudos
Reply
mohanaraovakamu
Nintex Newbie

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

NWF.FormFiller.Functions.ProcessOnChange(ctrl);

Not working, same space issue.

0 Kudos
Reply