I want pull data from an api based on a value entered on Hubspot landing page, and show the response data on same landing or a separate continuation page.
Steps:
1. Enter a zip code and service requirements
2. API pulls relevant service techs in area
3. Display on page
4. Have user choose which one to send information.
@DFickes - there are limitations to be aware of in what you want to do. Security limits mean that you cannot populate arbitrary contact data on a public web page/landing page - the page would need to be private/accessable via login or access list.
If I were undertaking this task for a public facing page, I'd probably choose to hold the data in HubDB and display tech options from there.
HubDB is not an option in this case. The information being pulled from the API is coming from an entirely different system and sending back information that needs to be displayed on the page. Think of a system that enables the entry of a zip code and then gives you a local list of stores. It's close enough for now.
The store information is not going to be in HubDB as there is already a source of truth and its a bit more complicated than just a simple lookup.
So, can you/has anyone set up a page that pulls from an API to display information on a HS landing page?
Fair enough - if you are using a 3rd party API source, the the sky is the limit. It's perfectly possible to dynamically construct a drop down menu set of options, for example, and attach it to a HubSpot form field on the fly. Its a Javascript based form customization that can be done inside a custom module and positioned on a landing page as required.
@DFickes - there are limitations to be aware of in what you want to do. Security limits mean that you cannot populate arbitrary contact data on a public web page/landing page - the page would need to be private/accessable via login or access list.
If I were undertaking this task for a public facing page, I'd probably choose to hold the data in HubDB and display tech options from there.