Changing the "Entry Updated. Return to Entry" message

After submitting an entry modification, you will see this notification message:

If you want to modify it, then you just need to use the filter gravityview/edit_entry/success for that.

Here's an example:

add_filter( 'gravityview/edit_entry/success', 'gv_edit_entry_success', 10, 4 );
function gv_edit_entry_success(  $entry_updated_message , $view_id, $entry, $back_link ) {
	$message = 'Product Updated. <a href="'.$back_link .'">Return to product\'s details page.</a>';
	return $message;

If you want to show a different message for a specific View, you can use this code instead:

add_filter( 'gravityview/edit_entry/success', 'customize_gv_edit_entry_success_message', 10, 4 );

 * Modify the edit entry success message (including the anchor link)
 * @param string $entry_updated_message Existing message
 * @param int $view_id View ID
 * @param array $entry Gravity Forms entry array
 * @param string $back_link URL to return to the original entry. @since 1.6
function customize_gv_edit_entry_success_message( $entry_updated_message, $view_id, $entry, $back_link ) {

	$run_on_views = [100,200]; //Change this to the Views you'd like to run this filter [100,200,300,...]

	if( in_array( $view_id, $run_on_views ) ){
		$return_page_url = esc_url( get_permalink( 100 ) ); // Return to a different page
		return "<a href='{$return_page_url}'>Back to the list</a>";
	return $entry_updated_message;
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us