Is there an easy way to set a default value for text form field?
If that field is bound to an entity (is a property of that entity) you can just set a default value for it.
An example:
public function getMyField() { if (is_null($this->MyField)) { $this->setMyField('my default value'); } return $this->MyField; }