src/Forms/FieldList.php
public function VisibleFields()
    {
        $visibleFields = new FieldList();

        foreach ($this as $field) {
            if (!($field instanceof HiddenField)) {
                $visibleFields->push($field);
            }
        }

        return $visibleFields;
    }
public function VisibleFields()
    {
        $visibleFields = new FieldList();

        foreach ($this as $field) {
            if (!($field instanceof HiddenField)) {
                $visibleFields->push($field);
            }
        }

        return $visibleFields;
    }
public function VisibleFields ( ) { $ visibleFields = new FieldList ( ) ; foreach ( $ this as $ field ) { if ( ! ( $ field instanceof HiddenField ) ) { $ visibleFields -> push ( $ field ) ; } } return $ visibleFields ; }
Return all fields except for the hidden fields.
Useful when making your own simplified form layouts.
Return all fields except for the hidden fields . Useful when making your own simplified form layouts .