• Skip to main content
  • Skip to primary sidebar

Victor Font Consulting Group, LLC

The DEX Intranet Specialists

  • Home
  • Care Plans
    • Care Articles
    • Optional Subscriptions
  • Consultations
  • Products
    • Code Snippets
    • Public GitHub Repositories
    • Gist Snippets
    • Pastebin Snippets (Free)
    • Free Plugins
  • FAQs
  • Support
    • Graphic Design
  • Contact
    • Speakers
    • Portfolio
  • Resources
    • Free WordPress Video Training
    • Tutorials
    • Articles
    • Cybersecurity
    • EU Referral Network

Create Individual Entries from Repeatable Sections

January 16, 2019 By Victor M. Font Jr.

Requirement

A client runs an online travel auction site to raise money for charities. Each auction can have multiple winners. The winners are captured in a repeatable field section on Form A—the invoice form. When a new invoice entry is created, the invoice is automatically added to QuickBooks Online through Zapier. When the invoice payment is recorded in QuickBooks Online, the details are updated in Form A, again via Zapier. Once Form A is updated, the client requires that new entries are auto-created in Form B—the thank you form. There needs to be one entry for each winner from Form A. Form B is essentially a clone of Form A but without the repeatable section. How do we do this?

Problem

The client requested that we use the Formidable API add-on to create the new entries in Form B. He also pointed to a code snippet in the Formidable knowledgebase that demonstrates how to pass information from one repeatable field section to another through the API using raw JSON.

While this solution is fairly easy to implement and works great for transferring information between forms where both have a repeatable field section, there is no way to get this to work to create multiple entries in another form without a repeatable field section.

Resolution

After studying the Zapier add-on code, we learned that the plugin hooks into the frm_after_update_entry action at priority 41. This means that hooking into the same action at a higher priority should give us what we need to create the entries in Form B. In this case, we're hooking into frm_after_update_entry at priority 50.

The code first loads the common fields for all new thank you form entries, then loops through the repeatable field on the invoice form to load each winner entry fields to variables. Then, while still in the loop, we create each new thank you form entry.

  • 0share
  • Facebook0
  • Twitter0
  • Pinterest0
  • LinkedIn0
  • Print
  • SMS0

Filed Under: Computers and Internet, Formidable Forms, How To, Programming, Tutorial, WordPress Tagged With: Formidable Forms, How To, Repeatable Sections, Tutorial, WordPress

About Victor M. Font Jr.

Victor M. Font Jr. is an award winning author, entrepreneur, and Senior IT Executive. A Founding Board Member of the North Carolina Executive Roundtable, he has served on the Board of Advisors, of the North Carolina Technology Association, the International Institute of Business Analysis, Association of Information Technology Professionals, Toastmasters International, and the North Carolina Commission for Mental Health, Developmental Disabilities, and Substance Abuse Services. He is author of several books including The Ultimate Guide to the SDLC and Winning With WordPress Basics, and Cybersecurity.

Primary Sidebar

Shopping Cart

Books

  • Ultimate Guide to the SDLC front cover The Ultimate Guide to the SDLC
    Rated 5.00 out of 5
    $74.95
  • Winning With WordPress Basics 2nd Edition Winning With WordPress Basics 2nd Edition $19.95

Recent Articles

  • Protected: WordPress Database Modernization Blueprint
  • Social Media Management
  • Site Growth Automation
  • GDPR Compliance Monitoring
  • Digital Strategy Accelerator

Top 10 Article Categories

Best Practice Code Snippet Computers and Internet Genesis How To Leadership Programming Servant Leadership Tutorial WordPress

We only use analytical cookies on our website that allow us to recognize and count the number of visitors, but they do not identify you individually. They help us to improve the way our website works. By clicking Accept you, agree to cookies being used in accordance with our Cookie Policy.OkNoCookie policy