<?php

echo do_shortcode('[ninja_forms id=1]'); 

$tmphtml = "";

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
 
 $ninja_form_id = $_POST["_form_id"];
 
 if ( $ninja_form_data == 1 ){ // Your Form ID
 
 $tmphtml .= '<script>';
 
 foreach ($_POST as $key => $val) {
 
 if (strpos($key, 'ninja_forms_field') !== false && $val <> '' && $val <> 'unchecked') {
 
 $tmphtml .= 'document.getElementById("' . $key . '").value = "' . $val . '";';
 
 }
 
 }
 
 $tmphtml .= '</script>';
 
 }
 
 echo $tmphtml;
}
Related Keywords: Developer, How-to, Solved, Ninja Forms Version 2.9.x, Input Fields Missing Data, Fail to Pass Back Post Data, Get Back Post Data, Ninja Form Fail to Remember Submission Data