protected function getPreviewFieldData()
    {
        $data = ArrayList::create();

        $fields = $this->record->Form()->Fields()->filter(
            'ClassName:not',
            [
                EditableLiteralField::class,
                EditableFormHeading::class,
            ]
        );

        foreach ($fields as $field) {
            $data->push(ArrayData::create([
                'Name' => $field->dbObject('Name'),
                'Title' => $field->dbObject('Title'),
                'Value' => DBField::create_field('Varchar', '$' . $field->Name),
                'FormattedValue' => DBField::create_field('Varchar', '$' . $field->Name)
            ]));
        }

        return $data;
    }
protected function getPreviewFieldData()
    {
        $data = ArrayList::create();

        $fields = $this->record->Form()->Fields()->filter(
            'ClassName:not',
            [
                EditableLiteralField::class,
                EditableFormHeading::class,
            ]
        );

        foreach ($fields as $field) {
            $data->push(ArrayData::create([
                'Name' => $field->dbObject('Name'),
                'Title' => $field->dbObject('Title'),
                'Value' => DBField::create_field('Varchar', '$' . $field->Name),
                'FormattedValue' => DBField::create_field('Varchar', '$' . $field->Name)
            ]));
        }

        return $data;
    }
protected function getPreviewFieldData ( ) { $ data = ArrayList :: create ( ) ; $ fields = $ this -> record -> Form ( ) -> Fields ( ) -> filter ( 'ClassName:not' , [ EditableLiteralField :: class , EditableFormHeading :: class , ] ) ; foreach ( $ fields as $ field ) { $ data -> push ( ArrayData :: create ( [ 'Name' => $ field -> dbObject ( 'Name' ) , 'Title' => $ field -> dbObject ( 'Title' ) , 'Value' => DBField :: create_field ( 'Varchar' , '$' . $ field -> Name ) , 'FormattedValue' => DBField :: create_field ( 'Varchar' , '$' . $ field -> Name ) ] ) ) ; } return $ data ; }
Get some placeholder field values to display in the preview

@return ArrayList
Get some placeholder field values to display in the preview