This custom field for Agility CMS is a boilerplate sample for how to search and select data from external third-party APIs. This is very useful creating integrations between content in Agility CMS and external content.
Open the HTML file /html/selectlist-from-api-template.html
and proceed to Media & Documents and upload the HTML file, or create an Inline Code file containing the contents of the file.
/js/select-from-api-init.js
and replace the values referencing dependency sources.
selectlist-from-api-template.html
or the inline code reference name.Copy the entire contents of the select-from-api-init.js
file and paste into your existing Input Form Customization JS file.
If you don’t have one already, save the contents of the file into a new JS file and upload this to Media & Documents, record the absolute URL and set the value in the CMS under Settings > Development Framework > Input Form Customization. Alternatively, you may also save this as an Inline Code file and reference it as your Input Form Customization.
If done successfully, you should see your custom field type available as an option within Module/Content definitions form builder.
Please contact support@agilitycms.com and we can assist or join our slack channel.