code: public function setFieldValidationStatus($action = '', $shortname = '', Elements\ValidationStatus $validation = null) {
  
  		if (!isset($_SESSION['prototyper_validation'][$action])) {
  			$_SESSION['prototyper_validation'][$action] = array();
  		}
  
  		$_SESSION['prototyper_validation'][$action][$shortname] = array(
  			'status' => $validation->getStatus(),
  			'messages' => $validation->getMessages()
  		);
  	}
docs: Save validation status of the field
  
  @param string                    $action     Action name
  @param string                    $shortname  Field name
  @param Elements\ValidationStatus $validation Status
  @return void