Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
sevenhills
Super User
Super User

Display Disclaimer Message

Hi 

 

I would like to add disclaimer message (as popup) to a report folder reports only. Any idea how to do these in PBIRS? 

 

I found these links, SSRS based... but when I looked for Report.aspx, I could not find on the server...

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/df4050d8-0ac9-4fd4-b5b3-8e568240bd38/displa... 

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/41fca59d-9290-45af-98d8-64bcbd85ba13/forum-... 

 

Thanks

S

1 ACCEPTED SOLUTION

Hi @sevenhills !

Please do not delete this post as this will be helpful for other community users in the future.

 

Also it would be great if you could share the code you have added in [ReportViewer.aspx]

Is the code similar to one which is available on the website you mentioned;

 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

    $(function() {

        $("#dialog").dialog({

        title: "jQuery Dialog Popup",
        height: "200",
        modal: true ,

        buttons: {
        "Agree": {
                text: "Agree",
                id: "my-button-id1",
                click: function() {
                $(this).dialog('close');
                document.getElementById("bg").style.display = "none";
                }
            },
            "Disagree": {
                text: "Disagree",
                id: "my-button-id2",
                click: function() {
                location.href = '/Reports'
                }
            }
        }

        });

    });

   
</script>
<div id="bg" style="width:100%; height:100%;z-index:20000;background-color:silver" >
<div id="dialog" style="display: none;z-index:20001">
 Please make sure you have read this information and understand clearly before enter the report.
</div>
</div>

 

Regards,

Hasham

View solution in original post

3 REPLIES 3
sevenhills
Super User
Super User

Report.aspx is replaced with ReportViewer.aspx (since SSRS 2016, I believe)

I am able to find "ReportViewer.aspx" under the folder "\PBIRS\ReportServer\Pages"

 

I am able to achieve the add disclaimer message.

 

Should I delete this thread?

 

Thanks

S

Hi @sevenhills !

Please do not delete this post as this will be helpful for other community users in the future.

 

Also it would be great if you could share the code you have added in [ReportViewer.aspx]

Is the code similar to one which is available on the website you mentioned;

 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

    $(function() {

        $("#dialog").dialog({

        title: "jQuery Dialog Popup",
        height: "200",
        modal: true ,

        buttons: {
        "Agree": {
                text: "Agree",
                id: "my-button-id1",
                click: function() {
                $(this).dialog('close');
                document.getElementById("bg").style.display = "none";
                }
            },
            "Disagree": {
                text: "Disagree",
                id: "my-button-id2",
                click: function() {
                location.href = '/Reports'
                }
            }
        }

        });

    });

   
</script>
<div id="bg" style="width:100%; height:100%;z-index:20000;background-color:silver" >
<div id="dialog" style="display: none;z-index:20001">
 Please make sure you have read this information and understand clearly before enter the report.
</div>
</div>

 

Regards,

Hasham

Yes, it is the same. I made modifications to my needs in ReportViewer.aspx

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.