# fluentform/6.2.11/app/Http/Controllers/SubmissionNoteController.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.2.11. 53 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.2.11/code/app/Http/Controllers/SubmissionNoteController.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.11/raw/app/Http/Controllers/SubmissionNoteController.php
- Modified: 2026-04-01T13:33:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.2.11/code/app/Http/Controllers/SubmissionNoteController.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Http\Controllers;

use Exception;
use FluentForm\App\Services\Submission\SubmissionService;

class SubmissionNoteController extends Controller
{
    public function get(SubmissionService $submissionService, $submissionId)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'page'     => 'intval',
                'per_page' => 'intval',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            return $this->sendSuccess(
                $submissionService->getNotes($submissionId, $attributes)
            );
        } catch (Exception $exception) {
            return $this->sendError([
                'message' => $exception->getMessage(),
            ]);
        }
    }

    public function store(SubmissionService $submissionService, $submissionId)
    {
        try {
            $attributes = $this->request->all();

            if (isset($attributes['note']['content'])) {
                $attributes['note']['content'] = wp_kses_post($attributes['note']['content']);
            }
            if (isset($attributes['note']['status'])) {
                $attributes['note']['status'] = sanitize_text_field($attributes['note']['status']);
            }

            return $this->sendSuccess(
                $submissionService->storeNote($submissionId, $attributes)
            );
        } catch (Exception $exception) {
            return $this->sendError([
                'message' => $exception->getMessage(),
            ]);
        }
    }
}

```
