Skip to main content
Nintex Community Menu Bar

List lookup control shows the path when the form is printed as PDF

  • November 30, 2017
  • 4 replies
  • 29 views

Forum|alt.badge.img+1

We are running Enterprise Workflow and Enterprise Forms in SharePoint on premise 2016.

I have a list lookup control on the nintex form.

On the view mode, the control shows up as a link.

On the edit mode, control shows up as a drop down

I open the form in view mode, print the form using "Print to PDF" button and I see the full path of the lookup value. Is there a way to hide the path when the form is "printed to PDF"?

4 replies

Forum|alt.badge.img+11
  • Nintex Partner
  • December 6, 2017

Hi J K,

have you tried using a media css query?

Something like

@media print #myControl{
   display:none;
}

Could help.

Cheers

Philipp


Forum|alt.badge.img+3
  • Nintex Partner
  • May 3, 2018

Hi Phillip,

I have come across the same and tried @media print as suggested, but i still get the lookup values displayed with full url when Print to PDF option is selected.


Forum|alt.badge.img+11
  • Nintex Partner
  • May 3, 2018

Hi Nirmala,

when you see the lookup value getting displayed, have you open your browsers developer tools and checked that you have used the correct selector for your css?


Forum|alt.badge.img+3
  • Nintex Partner
  • May 3, 2018

Hi Philip,

I have checked whether the control has got the correct css class and it is indeed. I the am using the below css to hide the full path of the lookup value being displayed.

CSS used

.disableActiveURL {
   pointer-events:none;
   cursor:default;
   text-decoration:none;
   color:black;
}

Print to PDF generates the below. Values of the lookup along with full path.

Thanks,

Nirmala