Telephone FWA should fetch multiple
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3576685. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1275
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The default mode of anyone gathering telephone number is to gather multiple. Thus, the FWA button should be a wrapper for the field, not for each item.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>1. Make sure that AI Automators, **Telephone** and Field Widget Action modules are enabled.<br>
2. Create a content type under <a href="https://drupal11-test.ddev.site/admin/structure/types/add">https://drupal11-test.ddev.site/admin/structure/types/add</a><br>
3. In label set "Telephone Automator"<br>
4. Click "Save and manage fields"<br>
5. Click "Re-use an existing field"<br>
6. Pick "Body" and click "Re-use"<br>
7. Click "Save Settings"<br>
8. Click "Create a new field"<br>
9. Pick "Telephone Number" as the field type<br>
10. Set the label to "Telephone Number"<br>
11. Set the "Allowed number of values" to "Unlimited"<br>
12. Scroll down and check "Enable AI Automator"<br>
13. In the "Choose AI Automator Type" pick "LLM: Telephone"<br>
14. In "Automator Base Field" pick "Body"<br>
15. In Automator Prompt write "Based on the context text return any telephone numbers listed in the text with country code. Context: {{ context }}"<br>
16. Open "Advanced Settings"<br>
17. Pick "Field Widget" under "Automator Worker"<br>
18. Click "Save".<br>
19. Goto form display for the content type: <a href="https://drupal11-test.ddev.site/admin/structure/types/manage/telephone_automator/form-display">https://drupal11-test.ddev.site/admin/structure/types/manage/telephone_automator/form-display</a><br>
20. On Telephone Number, click the cogwheel to edit the field settings.<br>
21. Open "Field Widget Actions"<br>
22. Under "Add new action" choose "Automator Telephone" and click "Add action"<br>
23. Check "Enable Automators"<br>
24. Open "Enable an Automator and click "Telephone Number Default"<br>
25. Click "Update"<br>
26. Click "Save"<br>
27. Go to Create Telephone Automator under <a href="https://drupal11-test.ddev.site/node/add">https://drupal11-test.ddev.site/node/add</a><br>
28. In the title write something whatever.<br>
29. In the body write "You can contact me at american numbers 555-1234 or at 555-5678"<br>
30. Click "Automator Telephone" button - this might take a while.<br>
31. <strong>Expected</strong>: You should see that the two phone numbers are generated and attached to the Telephone Number field with the country code +1 for American numbers.<br>
32. <strong>Instead</strong>: It only shows one number, you have to click add more - but since you do not know how many exists, its futile.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
<h3 id="summary-ai-usage">AI usage (if applicable)</h3>
<p>[ ] AI Assisted Issue<br>
This issue was generated with AI assistance, but was reviewed and refined by the creator.</p>
<p>[ ] AI Assisted Code<br>
This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p>
<p>[x] AI Generated Code<br>
This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p>
<p>[ ] Vibe Coded<br>
This code was generated by an AI and has only been functionally tested.</p>
issue