[Prompt Management] - Set dataname automatically
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535972. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !759
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Follow up issue when <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3509235" title="Status: Closed (fixed)">#3509235: Add AI Prompt management functionality within AI core</a></span> is merged.</p>
<p>When you click create new prompt, you are forced to fill out the data name. We should use the JS library the config entity form is using to hide and fill out this automatically.</p>
<p><img src="https://www.drupal.org/files/issues/2025-07-15/Screenshot%20from%202025-07-15%2009-12-31.png" alt="Adding js library"></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Replicate what config form is doing.</p>
issue