Skip to main content
Nintex Community Menu Bar

Unable to apply custom css towards a people picker control

  • Feb 24, 2017 3:09 AM UTC
  • 2 replies
  • 67 views
  • Translate All

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
  • Feb 24, 2017 9:15 AM UTC

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'‍
Translate

Forum|alt.badge.img+3
  • Author
  • Nintex Partner
  • Feb 26, 2017 10:34 PM UTC

Hi Marian,

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

Thanks again.

Translate