Skip to content

Add Ninja Forms integration#171

Merged
davidperezgar merged 3 commits intotrunkfrom
ninja-forms-integration
Mar 28, 2026
Merged

Add Ninja Forms integration#171
davidperezgar merged 3 commits intotrunkfrom
ninja-forms-integration

Conversation

@davidperezgar
Copy link
Copy Markdown
Contributor

Summary

Native Ninja Forms integration for FormsCRM, rebased onto trunk (replaces draft PR #123 which was targeting the stale 122-support-for-ninja-forms-integration branch).

  • Adds FormsCRM_NinjaForms_Action class — registers a custom Ninja Forms action that captures submissions and sends them to any configured CRM
  • Action settings: CRM type, module, credentials (URL, username, password, API key), expert mode, webhook URL, and field mapping
  • Helper function formscrm_parse_field_mapping() for parsing key = {field:value} style field maps
  • Loader updated to conditionally load the class when Ninja Forms is active
  • Unit test for formscrm_parse_field_mapping
  • Changelog entry added to readme.txt

Closes #123.

Test plan

  • With Ninja Forms active, confirm "FormsCRM" action appears in Ninja Forms action drawer
  • Configure a CRM connection and submit a form — verify the entry is sent to the CRM
  • CI checks pass (PHP 7.4, 8.1, 8.2, 8.3 + linting + PHPStan)

cursoragent and others added 2 commits March 28, 2026 21:40
Co-authored-by: david <david@closemarketing.es>
- Fix array double arrow alignment and spacing issues
- Add phpcs:disable for NonceVerification (Ninja Forms action context)
- Add phpcs:ignore for ninja_forms_merge_tags hook name (third-party hook)
- Add phpcs:disable for SeparateFunctionsFromOO (registration function must co-exist with class)
- Add NF_Abstracts_Action stub to phpstan-bootstrap.php
- Fix formscrm_debug_email_lead call to match function signature (3 params)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@davidperezgar davidperezgar merged commit 1105637 into trunk Mar 28, 2026
6 checks passed
@davidperezgar davidperezgar deleted the ninja-forms-integration branch March 28, 2026 20:46
@davidperezgar davidperezgar restored the ninja-forms-integration branch March 30, 2026 07:56
@davidperezgar davidperezgar deleted the ninja-forms-integration branch March 30, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants