Archives: Snippets

  • Generate Unique Submission ID in Hidden Field

    Generates a human-readable unique ID for each successful form submission and saves it to a designated Hidden field. Supports multiple forms and multiple hidden fields via a config array. Each ID uses a configurable prefix (including any separator) followed by

  • HTML Field Conditional Logic Popup

    Adds a Show as Popup checkbox to HTML fields in the form editor. When conditional logic shows a popup-enabled HTML field after user interaction, its content opens in an accessible modal instead of inline on the form.

  • User to Email Translation in Notification Routing

    Adds custom {user:name[@login1@login2]} and {user:id[@1@2]} merge tags that resolve to WordPress user email addresses in any notification field (to, from, reply-to, cc, bcc, and routing rules).

  • Block URLs in Text and Textarea Fields

    Rejects submissions containing URLs in text and textarea fields. Detects plain URLs (http://, https://, www.), HTML anchor tags, and Markdown-style links to reduce spam without requiring a CAPTCHA.

  • Convert Entry Date Created to Local Time in Webhook Request

    Converts the date_created field in outbound webhook requests from GMT to the site’s configured local time when the feed is sending all fields.

  • Use MemberPress Reset Password Link For {set_password_url} Merge Tag

    Replaces the User Registration {set_password_url} merge tag value with a MemberPress-generated password reset link, so notifications sent for newly registered users point them to the MemberPress reset flow instead of the default WordPress one.

  • Export Likert Numeric Score Instead of Label

    Replaces the exported value of Likert survey fields with their numeric score (as configured in the field’s survey scoring) rather than the selected choice label. Applies to entry exports (CSV) and any consumer of the gform_export_field_value filter.

  • Change Submit Button Text on Click to “Processing…”

    Appends an onclick handler to the Gravity Forms submit button that swaps its label to “Processing…” the moment the user clicks it, providing immediate feedback while the form submits.

  • Allow Selection of All CPTs in APC Feed

    By default, the Advanced Post Creation add-on only surfaces publicly registered custom post types in the feed settings. This removes the public argument from the get_post_types() query, allowing both public and non-public CPTs to appear as options.