Enrich Fluent normalized submission data - #1366
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
native_entry_idand server-observedfieldsbefore_submission_confirmationdispatch with its authoritative entry receipt, submitted values, and normalized source URLWhy
The shared Pro forms platform can only associate and project a successful Fluent Forms submission when Core's canonical event carries the native entry identity and the values observed by Fluent on the server. The callback already receives all of that data, but previously discarded everything except the form and submission IDs. Lead Magnets and future form-aware consumers would otherwise need their own Fluent hook, splitting success semantics and risking duplicate claims.
This change enriches the existing normalized dispatch instead.
submission_idremains the provider-native receipt used by Core's existing cross-runtime deduplication contract.native_entry_idexposes that same receipt explicitly to server-side capability consumers, whilefieldsexposes the provider-confirmed submitted values.Because Core's frontend replay previously forwarded unknown server keys, adding fields without another guard would expose submitted PII in localized page data after non-AJAX submissions. The replay boundary now removes
fields,raw_fields, andnative_entry_id; the established browser-safesubmissionIdremains available.Contract available to consumers
On
pum_integrated_form_submissionandpum_integrated_form_submission_actions, a successful Fluent callback now provides:Invalid filters cannot replace authoritative native entry identity or fields with malformed values. Submitted fields and native entry identity are server-only and are not included in
PUM_Integrations::pum_vars().Validation
Stacked after #1365.
Supports PopupMaker/Pro#152.