Is it possible to populate a form via REST API?

By: Mark Riffey | Asked: 03/29/2023
ForumsCategory: How-toIs it possible to populate a form via REST API?
Mark Riffey asked 1 year ago
I want to offer my users an update form for various info. I need to get that info via a REST call. It is not part of the WP database and never will be.  Is this possible with FF Pro? 

Mark
1 Answers
Victor Font answered 1 year ago

Yes, you can. See this: https://formidableforms.com/knowledgebase/formidable-api/

Mark Riffey replied 1 year ago

That's actually the reverse of what I need - in this instance. I want to hit a REST API, get some info and populate a FormForm with some of that data. Later, if the user makes changes, ill use the formidable API to post the data back.

Victor Font replied 1 year ago

You need custom code to do that. You can use the WordPress HTTP API to make remote API calls using PHP curl. The request API is a curl wrapper. https://developer.wordpress.org/apis/making-http-requests/

Mark Riffey replied 1 year ago

Thanks, that looks like a workable option.

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