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
learn-legacy-article-disclaimer-text
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