Legacy Knowledge Base
Published Jun. 30, 2025

DefaultValue in structures with repeatable fields are incorrect

Written By

Emma Carr-Gardner

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

  • Default values in structure with repeatable field don't work as expected.
  • After creating an exporting a structure with a repeatable field, the default value is empty, despite being defined in the structure

 

Steps to reproduced

  1. Go to Content & Data -> Structures (tab).
  2. Create new Structure (st_Test).
  3. Drag Text field to st_Test and check it as Repeatable.
  4. Save new structure.
  5. Click on three dots and go to Edit Default Values.
  6. Fill field text with "This is a test" and save
  7. Go back to Web Content (tab) and create new Web Content (wc_Test) based on st_Test.
  8. Click on “+” on field text to duplicate it.

Expected behavior: New duplicate field keep the default value ("this is a test")

Actual behavior: New duplicate field doesn't have default value.

Environment

  • Liferay DXP 7.4
  • Liferay DXP Quarterly Release

Resolution

  • To resolve this behavior, upgrade to Liferay DXP 2024.Q2.5+, or request a hotfix built on LPD-28728, if you are still within the Support Coverage window.

Additional Information

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base