From Aspen Documentation
Sets the current value of a form field loaded in memory.
Since 1.0
Arguments
void setCurrentValue ([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 current value of the field.
Returns
This function does not return any values.
Examples
Example:
$this->APP->form->setCurrentValue('author_id', 1);