Disable clicks in portal

rohitservicenow
Mega Guru

Hi, I have a requirement to show dashboards on portal. I have created a new widget and added the dashboard using the iframes, however unable to disable the mouse clicks on it. 

Already tried below CSS with no luck. 

.report_content {
pointer-events:none;
}
.avoid-clicks {
pointer-events: none;
}

Please suggest

Thanks and Regards, Rohit

9 REPLIES 9

Community Alums
Not applicable

Hi Rohit,

Please use the following property in the CSS:

.avoid-clicks {
pointer-events: none;
overflow: auto;
}

Thanks,

Enrique

Thank you Enrique, unfortunately it's still the same. Scroll bar is not enabled. 

Community Alums
Not applicable

Hi Rohit,

IFrame's are not supported on the Service Portal as per: https://community.servicenow.com/community?id=community_question&sys_id=eb201be5dbdcdbc01dcaf3231f96...

In my personal instance, I created a clone of the "Report" widget and amended the .report-widget-wrap CSS to reflect the following:

.report-widget-wrap {
background:#fff;
padding:15px;
margin: 0 0 15px 0;
pointer-events: none;
overflow: auto;
}

When I added that widget to the Service Portal, It was successfully read only and the report displayed correctly:

find_real_file.png

 

Omkar Mone
Mega Sage

Hi 

Instead of providing the class, can you try with this - 

iframe {
  pointer-events: none;
}

 

Let me know if that helps.

 

Regards

Omkar Mone

2020 Community MVP

Hey Omkar, thanks for the response. Yes, it helped, however it disabled the scroll bar also, want to know if we can enable the scroll bar while continue disabling the drill downs in reports?

Thank you, Rohit