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

  • 30 November 2017
  • 4 replies
  • 7 views

Badge +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

Badge +11

Hi J K,

have you tried using a media css query?

Something like

@media print #myControl{
   display:none;
}

Could help.

Cheers

Philipp

Badge +3

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.

Badge +11

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?

Badge +3

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

Reply