nf_previewid=<form_id>

The Ninja Forms nf previewid form id shortcode.


Usage

  1. // assign value 
  2. $nf_previewid=
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$nf_previewid="); 
  1. // assign value 
  2. $nf_previewid=
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$nf_previewid="); 
  6. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/includes/Display/Preview.php  
  1. /**/ 
  2. function the_content() 
  3. if ( ! is_user_logged_in() ) return __( 'You must be logged in to preview a form.', 'ninja-forms' ); 
  4.  
  5. return do_shortcode( "[nf_preview id='{$this->_form_id}']" ); 
  6.  
  7. /** 
  8. * @return string 
  9. */