• Skip to main content

Victor Font Consulting Group, LLC

The DEX Intranet Specialists

Call Us:

+1 919-604-5828

  • 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
You are here: Home / Computers and Internet / Create Individual Entries from Repeatable Sections

Create Individual Entries from Repeatable Sections

By Victor M. Font Jr.
January 16, 2019Leave a Comment

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

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.

Reader Interactions

VictorFont.com runs on the Genesis Framework

Genesis FrameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Check out the incredible features and the selection of designs. It's that simple—start using Genesis now!

Click here to download The Genesis Guide for Absolute Beginners (PDF - 1.4 MB)

Leave a Reply Cancel reply

Your email address and website will not be published. Required fields are marked *
Posting a comment means that you agree with and accept our Comment & Product Review Policy

Call: +1 919-604-5828

Send us an E-mail

Accessibility Statement | Affiliate Marketing Disclosure | Capability Statement

Cookie Policy | Comment & Product Review Policy | Privacy Policy | Site Map | Terms & Conditions

Copyright © 2003–2023 Victor M. Font Jr.

Return to top of page