src/Elements/Parents/Field.php
public function getDisplayValue($formid = null)
	{
		if ($formid && isset($_SESSION[$formid][$this->name])) {
			$value = $_SESSION[$formid][$this->name];
		} else if (isset($_POST[$this->name])) {
			$value = $_POST[$this->name];
		} else {
			$value = $this->defaultValue;
		}

		return $this->cleanValue($value);
	}
public function getDisplayValue($formid = null)
	{
		if ($formid && isset($_SESSION[$formid][$this->name])) {
			$value = $_SESSION[$formid][$this->name];
		} else if (isset($_POST[$this->name])) {
			$value = $_POST[$this->name];
		} else {
			$value = $this->defaultValue;
		}

		return $this->cleanValue($value);
	}
public function getDisplayValue ( $ formid = null ) { if ( $ formid && isset ( $ _SESSION [ $ formid ] [ $ this -> name ] ) ) { $ value = $ _SESSION [ $ formid ] [ $ this -> name ] ; } else if ( isset ( $ _POST [ $ this -> name ] ) ) { $ value = $ _POST [ $ this -> name ] ; } else { $ value = $ this -> defaultValue ; } return $ this -> cleanValue ( $ value ) ; }
Get the value to display in the form field.
Either the value in the session, post data,
the default value, or nothing.
@param  string Form ID
@return [type] [description]
Get the value to display in the form field . Either the value in the session post data the default value or nothing .