Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_no_entries_message

Use this hook to customize the "No Entries" message for a View.

Usage

add_filter( 'frm_no_entries_message', 'customize_no_entries_message', 10, 2);
function customize_no_entries_message( $message, $args )

Parameters

  • $message (string)
  • $args (array), => [ 'display' (object) ]

Examples

Remove message

This function will completely remove the no entries message for a View. Just replace 1066 with the ID of your View.

add_filter( 'frm_no_entries_message', 'remove_no_entries_message', 10, 2);
function remove_no_entries_message( $message, $args ) {
	if ( $args['display']->ID == 1066 ) {
		$message = '';
	}
	return $message;
}

Remove surrounding div

This function will remove the no entries message div and class. Just replace 1066 with the ID of your View.

add_filter( 'frm_no_entries_message', 'remove_no_entries_message_div', 10, 2);
function remove_no_entries_message_div( $message, $args ) {
	if ( $args['display']->ID == 1066 ) {
		$message = str_replace( '', '', $message ); $message = substr( $message, 0, -6 ); } return $message; }

Display Specific Message Based on URL Parameter

This example will allow for a specific no entries message to be displayed if a user has filtered a View using a URL parameter, but no entries exist based on that filter. Replace 1378 with the ID of your View, and change the page URLs and messages as needed.

The URLs in this example are relative; therefore, if your URL is 'www.mysite.com/my-view/?status=pending', you would just use '/my-view/?status=pending'.

add_filter( 'frm_no_entries_message', 'remove_no_entries_message', 10, 2);
function remove_no_entries_message( $message, $args ) {
 $host = $_SERVER['REQUEST_URI'];
 if ( $args['display']->ID == 1378 ) {
   if ($host == "/your-relative-url/?status=pending") {
     $message = 'You have no pending entries.';
   }
   elseif ($host == "/your-relative-url/?status=incomplete") {
     $message = 'You have no incomplete entries.';
   }
 }
 return $message;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms