Customize the default "No data to display" alert message

Comments

3 comments

  • Avatar
    Brandon Carraway

    I followed the above guide, and I still see the default error message - Is there something I need to put in my Google Sheet?

    0
    Comment actions Permalink
  • Avatar
    Thomas Morin

    Hello Brandon,

    Actually, this method doesn't work when you apply filter and no data are displayed.

    This method works only when:

    • you have no data in your Google Spreadsheet data source
    • you have no data because of the query you used

    So, it can not work in your example.

    Thank you for your understanding.

    Thomas

    0
    Comment actions Permalink
  • Avatar
    Ayhan G

    Hello Brandon,

    That was something I was looking for until I found the solution like this:

    At the Template page use the following code under <script> column:

    /* Custom error message */

    .at-noData-icon:before {
    content: "No data matching that criteria";
    color: red;
    font-weight: bold;
    text-align: left;
    }

    .at-noData-message {display:none!important}

    /* Custom error message */

     

    You can customize the error message (No data matching that criteria) at the second line.

    0
    Comment actions Permalink

Please sign in to leave a comment.