Add JetFormBuilder form integration#194
Merged
davidperezgar merged 4 commits intoMay 17, 2026
Merged
Conversation
Adds FORMSCRM_JetFormBuilder class that registers a FormsCRM meta box on the jet-form-builder post type, persists per-form CRM settings as post meta, parses Gutenberg blocks to list available form fields, and hooks into jet_fb_on_success to push mapped field data to the configured CRM. Errors are caught and routed to the FormsCRM Error Log without surfacing to the end user. The class is conditionally loaded in loader.php when jetformbuilder/jet-form-builder.php is active. https://claude.ai/code/session_01AoKC9VjVP97Mw1YZ5fYPs6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds native FormsCRM integration for JetFormBuilder, enabling form submissions to be automatically sent to connected CRM/ERP systems.
Key Changes
New form integration class (
FORMSCRM_JetFormBuilder) that:jet_fb_on_successaction to process form submissions and send data to the CRMField extraction from JetFormBuilder's Gutenberg block structure:
jet-forms/*field blocksnameandfieldNameblock attributes for field identificationDynamic value substitution using
{id:field_name}shortcode syntax in field mappingsError handling that logs CRM submission failures to the error log without blocking form submissions
Conditional loading in
loader.php— integration only loads when JetFormBuilder plugin is activeImplementation Details
fc_crm_field-*keysformscrm_get_api_class(),formscrm_render_connection_status(), etc.)https://claude.ai/code/session_01AoKC9VjVP97Mw1YZ5fYPs6