• Resolved ejclarkster

    (@ejclarkster)


    Hi guys,

    Is it possible to conditionally create a custom post based on something that happens in your form?

    My custom post must only post under certain conditions — either a discount is generated by the form submission, or it’s not. I’m using the conditional display of GF to hide the Post Title field when I want the form NOT to post the custom post, but even then, every time it gets posted anyway, just with a title of (no title).

    How can I force the form not to post the custom type when I don’t want it to?

    Thanks in advance.
    EJ

    https://ww.wp.xz.cn/plugins/gravity-forms-custom-post-types/

Viewing 1 replies (of 1 total)
  • Thread Starter ejclarkster

    (@ejclarkster)

    Hmm, I seem to have figured it out: Not only your post title must be hidden to avoid posting, but every single field being used in posting the post must also be hidden.

    I had the post title hidden, but one of the custom fields was still displaying, and apparently that overrides the hidden title and posts anyway, albeit with a blank title.

Viewing 1 replies (of 1 total)

The topic ‘Conditionally Create Custom Post?’ is closed to new replies.