Jump to content

Hide the Clear Results option from Data Viewer


Graham Quince

Recommended Posts

Here's a tiny bit of CSS you might find helpful if you're using the Data Viewer for forms and that Clear Results button is awfully tempting to click.  Obviously there's the warning pop-up asking for confirmation, but if you want to remove the possibility entirely:

<style>
    .dataviewer-clear {
        display: none !important;
    }
</style>

That hides it for all Data Viewers, if you place it on the staff dashboard for instance.  Should you need to access a data viewer's delete button yourself, then you'll need to open the platform in Safemode (swap out the end of your web address for /app/os?safemode )

Or to target a specific viewer:

<style>
  div[data-content-uuid="WIDGET_UUID"] .dataviewer-clear {
    display: none !important;
  }
</style>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...