public function value($value) { // Check if we already have a value stored for this field or in POST data $already = $this->repopulate(); if (!$already) { $this->value = $value; } return $this; }