Cancel Save of Custom Post
-
I am using Gravity Forms to add a custom post, Newsletter. The PODS CPT has a file field which is referenced on the form. If a file is uploaded, the newsletter post should be saved and a notification sent with the file attached. If a file is NOT uploaded there is also an option to select from existing newsletters, in which case the notification should still be sent, but a new newsletter post should NOT be created.
What I can’t figure out is how to cancel the post save in the second case. I am doing the needed processing for attaching the file and creating the mailing list in filter gform_notification_12. My guess is that the cancel would need to happen someplace else, I’m just not sure if it would be in a Gravity Forms hook or a PODS hook.
Could you point me in the right direction? Thanks!
- The topic ‘Cancel Save of Custom Post’ is closed to new replies.