I am building an auto-quote form that is intended to work directly with an API I built. If it helps in any way with finding my answer, I built the API in Flask which is hosted in Google Cloud Run. Here is the intended workflow of my Form:
- PAGE 1 > Gather Technical Specifications
- PAGE 2 > Gather Contact Information
- QUERY API
- PAGE 3 > Confirm Information (Based on API Response)
- PAGE 4 > Base Quote + Add-On Options (Based on API Response), plus the option to put down a deposit
Currently we're on the Plus plan. I do, however, see that the Business plan comes with "Formidable Forms API." Will that enable me to accomplish the end result I'm looking for? I don't know if the API feature is strictly for actions on form submit, or if it would enable me to query the API between pages and auto populate variables in the last two pages based on the API response. An added benefit would be a loading animation while the API is being queried. If I need to build this bespoke, I guess I can do that, but maybe can someone give me some direction on how to achieve my desired end result?
The API add-on works when a works when a form entry is saved or edited. You can connect to eternal APIs or other Formidable sites. You can also access external APIs using CURL in WordPress. WordPress has an API wrapper for CURL. Make sure you do your testing in Postman first. It will save you a lot of troubleshooting time. https://formidableforms.com/knowledgebase/formidable-api/
If you want to do real time API confirmations from the front end, use AJAX.
Please login or Register to submit your answer