Looking to update cost / HTML based on API response

By: Josh Hobbs | Asked: 01/05/2025
ForumsCategory: How-toLooking to update cost / HTML based on API response
Josh Hobbs asked 2 days ago

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?

1 Answers
Victor Font answered 1 day ago
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/
Victor Font replied 1 day ago

If you want to do real time API confirmations from the front end, use AJAX.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right