From Aspen Documentation
Sets a default value of a form field loaded in memory.
Since 1.0
Arguments
void setDefaultValue ([string $field = false], [mixed $value = false])
- field
- The field name. If it doesn't exist in the loaded form schema it will be created.
- value
- The default value of the field.
Returns
This function does not return any values.
Examples
Example:
$this->APP->form->setDefaultValue('author_id', 1);