Skip to content
Ninja Forms Views
  • Features
  • Pricing
  • Demo
  • Blog
  • SupportExpand
    • Docs
    • Contact Us
Login
Account
Get Views
Ninja Forms Views

Getting Started

10
  • How to install NFViews Plugin
  • How to Add License Key to NFViews
  • How to upgrade your NFViews License
  • How to Create Table View of Ninja Forms Entries
  • How to Create a DataTable view of Ninja Forms Entries in Frontend
  • How to Create List View of Ninja Form Entries
  • How to Design & Style Your Ninja Forms View
  • How to Display Only User Submitted Entries in NFViews
  • Fix Search Form redirects back to Homepage
  • How to hide empty fields in NFViews

Filter & Sort

3
  • Sort Ninja Forms Entries by Field Value
  • Filter Ninja Forms Entries by Field Value with NFViews
  • How to use Merge Tags to Filter Ninja Forms entries

Edit Entries

1
  • How to edit Ninja Forms Entries from Frontend

Approve Entries

1
  • How to Show Only Approved Ninja Forms Entries

Single Entry

1
  • How to Display Entry details on Single Page

Hooks & Filters

1
  • Code Examples

Calculations

1
  • How to display Ninja Forms Field Calculations in table footer
View Categories
  • Home
  • Docs
  • Hooks & Filters
  • Code Examples

Code Examples

Aman
Updated on May 8, 2022

# Add print button to Single Page using Custom HTML field

<input type="button" value="Print" onClick="window.print()">

#Send user email after entry is approved

add_action( 'nf_views/approve_submission/approved', 'wh_email_user_on_approval' );
function wh_email_user_on_approval( $sub_id ) {
	$sub = Ninja_Forms()->form()->get_sub( $sub_id );
	$user_email_field_key = 'email_1566280604823';// Update this to the field key of the email field which saves user email id.
	$user_email = $sub->get_field_value( $user_email_field_key );
	if ( ! empty( $user_email ) ) {
		$subject = 'The subject'; 
		$body = 'The email body content';
		$headers = array( 'Content-Type: text/html; charset=UTF-8' );
		wp_mail( $user_email, $subject, $body, $headers );
	}
}

Code ExamplesCode Examples
Table of Contents
  • # Add print button to Single Page using Custom HTML field
  • #Send user email after entry is approved

Views For Ninja Forms

Drag & Drop View builder for Ninja Forms. We have built scalable, intelligent, and professional web apps to simplify the lives of different businesses and people since 2010.

SiteMap

  • Home
  • Pricing
  • Features
  • Blog
  • Documentation
  • Changelog
  • Sitemap

Company

  • Login
  • Account
  • FAQs
  • Terms & Conditions
  • Cancellation & Refund Policy
  • Privacy Policy
  • Contact Us
  • Views for WPForms
  • Views for Contact Form 7

Features

  • Display Only User Submitted Entries
  • Display Entry details on a Single Page
  • Edit Ninja Forms Entries from Frontend
  • Create Table View of Ninja Forms Entries
  • Create a DataTable view of Ninja Forms Entries
  • Create List View of Ninja Form Entries
  • Display Ninja Forms Field Calculations
  • Ninja Forms Entry Views & Examples

Social

Facebook FacebookTwitter TwitterInstagram Instagram

© 2026 Ninja Forms Views

  • Features
  • Pricing
  • Demo
  • Blog
  • Support
    • Docs
    • Contact Us