Legacy Knowledge Base
Published Jul. 2, 2025

Form with select field breaks if SPA is not enabled

Written By

Ankit Gupta

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

  • Steps to reproduce:

    1. Set the following property in your portal-ext:
      javascript.single.page.application.enabled=false
      
    2. Start the server and create a form with a Select From List field with a couple of options.
    3. Publish the form
    4. Create a new page and place the form on it. Check that selecting an option works.
    5. Log out and access that page again as guest.

    Actual Result: The field is inactivated/unusable and in the browser console you get a Javascript error: Liferay.Util.escapeHTML is not a function
    Expected Result: The option can be selected as in step 4.

Environment

  • Liferay DXP 7.2

Resolution

  • The observed behavior is a known issue and is fixed in liferay-fix-pack-dxp-14 for 7.2.
  • If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install these Fixpack in your environment.
Did this article resolve your issue ?

Legacy Knowledge Base