Legacy Knowledge Base
Published Jun. 30, 2025

Getting null value for "to name" in email template

Written By

Anushka Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Enable the email functionality, after submitting the form, getting the ''null'' value in the 'to' section of the email template.
  • Steps to reproduce:

    1. Start Liferay DXP 7.4
    2. Navigate to Control Panel > Notifications > Templates. Click on the add button to create a new template and fill in the necessary information.
    3. Now, navigate to Control Panel >Objects. Create a new object, then create a new field inside the created objects.
    4. Inside the created object, select the 'Action' tab, create a new action, and name the label, under 'Action Builder' apply the rule and click on 'Save'.
    5. Navigate to Site Menu > Fragment and create a new fragment set and add the fragment, then select the 'Form Fragment' , choose the available option, click on 'add', and publish the form.
    6. Create a page, drag and drop the 'form container', and map the form by selecting the object that we have created in the 2nd step.
    7. To configure the mail on the portal please see this article: How-to-set-up-a-Mail-Server-with-DXP-to-receive-email-notifications-
    Observer behavior: Getting the "null' value in place of 'to name' in the email notification
    Expected behavior: Should get the 'to name' in the email template instead of 'null'

Environment

  • Liferay DXP 7.4

Resolution

  • The observed behavior is a known bug that has been addressed by LPS-183593

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base