legacy-knowledge-base
公開されました Jul. 2, 2025

テキストフィールドにidがないため、ラベルはfor属性として入力の名前を使用します。

written-by

Kanchan Bisht

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

問題

  • テキストフィールドにはIDがないので、ラベルは 'for' 属性を使って入力の名前を参照します
    再現するためのステップ:
    1. フォームを作成し、テキストフィールドを追加する
    2. このフォームを保存してプレビューする
    3. 入力コードを検査する
    観測された動作: テキストフィールドには、ラベルからfor属性をマッピングするためのIDがない
    期待される動作 テキストフィールドは、ラベルからfor属性をマッピングするためのIDを持つべきである。

環境

  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決策

  • 観測された動作は、DXPの既知のバグで、 LPS-151194によって対処されています。
  • この問題に対してHotfixが必要な場合は、パッチの詳細を添付して、Hotfixを要求するサポートチケットを作成してください。
  • Liferay DXPへのFix PackとHotfixのインストール このHotfixを各環境にインストールするためのガイドを示します。
did-this-article-resolve-your-issue

legacy-knowledge-base