Skip to main content
Nintex Community Menu Bar

Unable to apply custom css towards a people picker control

  • February 24, 2017
  • 2 replies
  • 33 views

Forum|alt.badge.img+3

Hi,

I am using Nintex Forms 2013 and I am trying to apply custom css(border-color as 'something') through JavaScript towards a people picker control and the CSS is not applied at all. My JS code is as follows:

ApproverID.css('border-color','red !important'); //ApproverID is the JavaScript ClientID of the picker control

I have applied the same piece of custom CSS towards other controls like dropdown(choice control), date, single & multi-line text boxes without any issues.

Any help is grealty appreciated.

Thanks

2 replies

Forum|alt.badge.img+14
  • Scholar
  • February 24, 2017

different control have different DOM model so the same syntax need not apply to all of then.

for people control something like this should work

NWF$('#'+ApproverID).closest('.nf-filler-control-border')[0].style.border='2px solid red'

Forum|alt.badge.img+3
  • Author
  • Nintex Partner
  • February 26, 2017

Hi Marian,

It worked, thanks a lot. You saved me a lot of time.

Thanks again.