# Form - Change the blue section

**URL:** <https://forums.realmacsoftware.com/t/form-change-the-blue-section/51859>\
**Category:** Elements\
**Created:** [October 20, 2025, 10:15am UTC](https://forums.realmacsoftware.com/t/form-change-the-blue-section/51859 "2025-10-20T10:15:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [October 20, 2025, 2:55pm UTC](https://forums.realmacsoftware.com/t/form-change-the-blue-section/51859/8 "2025-10-20T14:55:13Z")

</div>

@dan I traced the heading in the email template back and found it’s just not configured.

It’s a one liner to make the existing From Name in the form component setting become the heading in the email template. See my code comments below.

 ![CleanShot 2025-10-20 at 3 .50.56@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/c/6/c6f8899ccdac3d9228854e1e560710cd91248a35.png)

```php
/**
     * Prepare email data from form data and config
     */
    private function prepareEmailData(array $formData, array $emailConfig, string $configPath, array $uploadedFiles = []): array
    {
        $emailData = [
            'to' => $emailConfig['to'],
            'subject' => $this->buildSubject($emailConfig, $configPath),
            'template' => $emailConfig['template'] ?? 'default',
            'from_email' => $emailConfig['from_email'] ?? null,
            'from_name' => $emailConfig['from_name'] ?? null,
            'email_title' => $emailConfig['from_name'] ?? 'Missing From Name' // Adding this line in will give the header of the form the from name.
            // The from name is an already existing field in the form component.
            // You can find this at : rw > elements > com.realmac.corepack > api > src > controllers > EmailFormController.php
        ];

        // Process uploaded files for email attachments
        if (!empty($uploadedFiles)) {
            $emailData['attachments'] = $this->processUploadedFiles($uploadedFiles);
        }

        return $emailData;
    }

```

This change would make the received email look like :

 ![CleanShot 2025-10-20 at 3 .54.21@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/a/9/a9d343f359eebc0ff7b3d39d9dce4e0825eb662e.png)

---

_[View the full topic](https://forums.realmacsoftware.com/t/form-change-the-blue-section/51859)._
