• Hi there,

    First off, great plugin!

    We would like to know if we can set the file path programmatically, specifically:

    We are using custom post types with custom fields for a file. On each of these custom post types, we have a gravity form (same form each time).

    What we would like to know is if / and how it would be possible to set the file path of the form attachment based on the custom field on each respective custom post type. In other words, we could use the same form, but the attachment would vary based on the CPT (instead of having to make loads of unique forms).

    Thanks in advance!

    https://www.ads-software.com/plugins/gravity-forms-notification-attachments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have a very similar request… needing dynamic file attachments based on a custom field value.

    I have a select field that is dynamically populated with data from a custom field (ACF Repeater). Each option in the dropdown is a URL to an uploaded file.

    Would it be possible to use these files as the chosen attachment?

    I’m hoping to find a solution very similar to what @henryleo describes except I would like to base the attachments on selected checkboxes within the form entry allowing the user to select which attachments they want to receive.

    I can do it with the built-in gravity forms conditional logic but with 5 choices there would be 31 permutations.

    Thanks in advance for any thoughts.

    -Brian

    PS – your donate button on the plugin goes to example.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set Attachment Path Programmatically’ is closed to new replies.