Hey TB Community-
Sharing some JS and Handlebar.js code for others if they want to completely hide the “No record found” message in a custom component OR want to change to a custom message.
Confirmation if the codes work would be appreciated.
Also, the hide the default message comes from an old posting on the Community that @moe provided.
Hide Custom Component “No record found” Message:
Follow the instructions that @moe posted here:
Replace default message with a custom message:
Just add the following javascript (don’t have to put anything in the custom component template page)
$(document).ready(function() {
var noRecords = $(".tb-no-record-found");
if (noRecords.length) {
noRecords.text("Your custom message here."); // Change this to your desired wording
}
});
Hope this helps,
Adam