Skip to content

Instantly share code, notes, and snippets.

@tresorama
Last active June 4, 2024 21:46
Show Gist options
  • Save tresorama/e0837f6d17e71635b84e4609cea11613 to your computer and use it in GitHub Desktop.
Save tresorama/e0837f6d17e71635b84e4609cea11613 to your computer and use it in GitHub Desktop.
Desccription and instructions about the bug in Forminator that prevent to have Dynamic Forms

Google Drive dir with all files referenced as attachment of this gist: https://drive.google.com/drive/folders/13tEpFoOyVKGSQxgPPKmagvNmey0ueouR?usp=sharing

Video Screen Cast

Start by looking at the screencast.mp4 video (in attachment), where i explain the scenario where the bug happens. Then when you want to reproduce follow next step.

How to reproduce

To have the same scenario of the beginning of the video there a lot of things to do, you can do in two ways:

  • A - Use Local by flywheel and import the website with everything already setup (Fast Reccomended)
  • B - Do everything by hand (Slow)

A - With Local (Fast)

Import the website with "Local by flywheel" and import the zip from attachment.
Now You have the same situation I had at the beginning of the video.

B - Manual (Slow)

  1. Install Wordpress
  2. Install Plugin => ACF PRO 6.2.0 (there is a copy in attachment)
  3. Install Plugin => Forminator 1.30.2
  4. Import ACF Fields Schema:
    • create this folder: wp-content/themes/twentytwentyfour/acf-json
    • copy files here from attachment
    • go to WP Admin > ACF > Post Types
      • click “Sync Available” and sync “Tour”
    • go to WP Admin > ACF > Field Groups
      • click “Sync Available” and sync “CPT Fields - Tour”
  5. Import CPT Resources “Tour”:
    • go WP Admin > Tools > Import > Wordrepss > Install Importer
    • click “Run Importer”
    • import the xml file from attahemtn
  6. Import Forminator Form “Book Tour”:
    • Go to WP Admin > Formintaor > Forms
    • Click “Import” in top bar
    • Paste file content from attachment and Import
    • Then copy the shortcode of the form in clipboard
  7. Import Page Template for “Single - Tour”:
    • Copy single-tour.html to wp-content/themes/twentytwentyfour/templates
    • Replace line 19 of that file with the shortcode copied in clipboard
  8. Import custom code
    • Copy from attachment “book-tour-integration.php” to wp-content/mu-plugins
    • Open that file and update form in in line 5

Now You have the same situation I had at the beginning of the video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment