• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
NFViews

NFViews

Display Ninja Forms submissions on your website

  • Features
  • Pricing
  • Demo
  • Blog
  • Account
Contact Us

NFViews Documentation

Documentation and Tutorials for NFViews

Code Examples

# 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 );
	}

}

Primary Sidebar

Topics

  • Getting Started
  • Filter & Sort
  • Edit Entries
  • Approve Entries
  • Single Entry
  • Hooks & Filters

Footer

Views for Ninja Forms

Drag & Drop View builder for Ninja Forms.

We build scalable, intelligent and professional web apps to simplify lives of different businesses and people since 2010.

Sitemap

  • Home
  • Features
  • Pricing
  • Blog
  • Documentation
  • Affiliate Area
  • Changelog

Company

  • Login
  • FAQs
  • Terms & Conditions
  • Contact Us

Newsletter

Get the latest news, events and announcements straight to your inbox.

  • Facebook
  • Twitter
  • YouTube

Copyright © 2023 NFViews. All rights reserved. Return to top