System:Form:isFilled

From Aspen Documentation

Validates that the current value of a field is non-empty.

Since 1.0

Arguments

boolean isFilled (string $field)

field
Name of the form field currently loaded.

Returns

Returns boolean.

Examples

Example:

if(!$this->APP->form->isFilled('field_name')){
     $this->APP->form->addError('field_name', 'An error message');
}