BrightLeaf Digital Code Snippet Library
Check out our growing library of code snippets for Gravity Forms!
GOAL Allows editing of pricing fields in the Gravity Flow inbox entry view, replacing the usual "Pricing fields are not editable" message with the real field input. CONFIGURATION $workflow_form_ids: Update to include the form IDs where pricing fields should be editable. Optionally restrict to certain pricing field types via $allowed_pricing_types. NOTES Applies only on the Gravity Flow inbox entry view …
When Gravity Flow Form Connector creates a new entry, ensure multi‑file upload values are arrays (not JSON strings). Decodes JSON when detected and normalizes the array. This allows the entry to be created without errors.
GOAL Adds a custom Gravity Flow step type that generates Gravity Forms Coupons dynamically during a workflow. Provides full UI to configure code, name, amount, type, target form, dates, limits, and stackability. Registers a {coupon_code} merge tag which outputs the code created for the entry.
GOAL This code snippet renames the "Workflow Complete" step in Gravity Flow by dynamically replacing it with the actual name of the last completed step in the workflow. This ensures that users see a meaningful step name rather than the generic "Workflow Complete" label when viewing GravityView entries. CONFIGURATION $form_ids: Update to the list of form IDs this should apply to. NOTES …
This code snippet enhances Gravity Flow by allowing workflows to be delayed or restarted based on GravityView approval and subscription payments. It provides options to: Delay workflow initiation until an entry is approved in GravityView instead of starting upon form submission. Restart the workflow upon each subscription payment for recurring payment scenarios. Update a date field when the workflow restarts to reflect the latest payment or approval. Manually …
GOAL Monitors Gravity Flow workflows and alerts administrators when workflow fails to start after form submission. Critical for catching workflow configuration errors, conditional logic issues, or system failures that prevent automated processes from running. Checks both parent and nested child forms. FEATURES INCLUDED ✓ Workflow configuration details ✓ Conditional logic evaluation (shows if conditions are met/not met and why) ✓ …
This snippet enhances the Update Entry and Create Entry workflow steps in Gravity Flow by allowing a field value to be automatically saved as an entry note. The note is recorded when a new entry is created or an existing entry is updated via workflow automation. Features ✔ Save Field Value as Entry Note – Select a field whose value should be recorded as a note when the workflow …
GOAL Keeps a designated field (label default: "Workflow Step Field") up to date with the workflow status: On step start: current step name On workflow complete: complete step name On workflow cancel: "Cancelled" CONFIGURATION $status_field_label: If you use a different field label, change to your field label.