Add support for autocomplete fields to be added to AI Automator
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3508484. -->
Reported by: [xamount](https://www.drupal.org/user/23901)
Related to !481
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I tried adding an entity reference field to my AI automator chain so that i can access the tokens for various fields from the referenced node in the AI automator. I found it challenging to do this otherwise. But i never got the autocomplete to work so still stuck on trying to access multiple node fields.</p>
<p>Apparently the Automator for ckeditor only handles text and file input.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Add an ai automator chain with 2 fields. The first field is an entity reference field to a specific content type. The second field is just a text field to store the output. In the manage form display, I have set it to autocomplete (and also tried select list and checkbox radio buttons). I then enabled this ai automator within ckeditor. But when I click the AI Assistant button from within the ckeditor, the ai automator widget popup always shows the the first ai automator field as a textarea box and not an entity reference autocomplete field (or any of the other form display widgets like check box, select field etc). </p>
<p>This issue was created as a result of this slack thread: </p>
<p><a href="https://drupal.slack.com/archives/CDL2YPBNX/p1740186254274939">https://drupal.slack.com/archives/CDL2YPBNX/p1740186254274939</a></p>
issue