I am currently developing a module with a custom content type. In the node/add for this content type, I need to be insert a form that can retrieves data from an API, that will later be displayed on the page.
What is the best way to insert that form into the node/add page?
Should I use a hook_form_alter? Or should I make a custom field? This portion of the form will most likely involve AJAX, so I don't know if that will change anything.
Let me know if I need to clarify anything, and thanks in advance!