Forms API returns default Field Name instead of the Field Reference value
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
- When making a request using a forms API such as the getFormRecord endpoint, the response returns the default Field Name(e.g. “Text12345”) instead of the newly created field Reference value on a field.
Resolution
- This is the expected behavior as the Field Reference did not exist when the Forms headless API was created. This means the API only returns the Field Name.
- All form field types have the following fields:
- Field Name: This field has existed in all previous versions (7.0.x, 7.1.x, 7.2.x, 7.3.x, 7.4.x).
- Field Reference: This field was introduced in version 7.3.x.
Did this article resolve your issue ?