Title: Import a form programmatically
Last modified: January 30, 2025

---

# Import a form programmatically

 *  Resolved [George](https://wordpress.org/support/users/quantum_leap/)
 * (@quantum_leap)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/import-a-form-programmatically/)
 * Hello. I am trying to import a form’s json export programmatically, through the
   [One Click Demo Import](https://wordpress.org/support/plugin/one-click-demo-import/)
   plugin. I am importing a child theme along with recommended plugins including
   Fluent Forms. I plan to do that through the [`ocdi/after_import` hook provided by the plugin](https://ocdi.com/advanced-integration-guide/#after-import-custom-code-execution).
   I tried a few solutions but it didn’t work. Can you provide some info on how 
   to achieve this? Do you provide an API for importing forms programmatically?
   
   Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Amimul Ihsan](https://wordpress.org/support/users/amimulihsanmahdi/)
 * (@amimulihsanmahdi)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/import-a-form-programmatically/#post-18281155)
 * Hello [@quantum_leap](https://wordpress.org/support/users/quantum_leap/),
 * Unfortunately, there aren’t any API available to import the form programatically.
   However, you can see the codebase to understand the form import feature. I have
   listed 2 paths below.
    1. Path: fluentform/app/Modules/Transfer/Transfer.php, function: importForms
    2. Path: fluentform/app/Services/Transfer/TransferService.php, function: importForms
 * Thank you
 *  Thread Starter [George](https://wordpress.org/support/users/quantum_leap/)
 * (@quantum_leap)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/import-a-form-programmatically/#post-18282038)
 * Hey, that helped a lot, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Import a form programmatically’ is closed to new replies.

 * ![](https://ps.w.org/fluentform/assets/icon-256x256.png?rev=3354580)
 * [Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder](https://wordpress.org/plugins/fluentform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluentform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluentform/)
 * [Active Topics](https://wordpress.org/support/plugin/fluentform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluentform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluentform/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [George](https://wordpress.org/support/users/quantum_leap/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/import-a-form-programmatically/#post-18282038)
 * Status: resolved