• Hello,

    We have installed the addon and are trying to connect a form to update a custom post type we have. Instead, it seems that the form is making a new regular post. I’m a little unclear on how we link the form to the custom post type to update. I am adding the {post_id} in the Target Post Settings but I’m not sure if that is correct.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alex Chernov

    (@alexusblack)

    Hi Stephanie,

    the plugin makes no distinction between regular posts and custom post types. You just need to provide correct post id for it to work.

    – You can enter post id number manually
    – You can enter form field that contains post id using merge tag ({} button)
    – 1.1+ You can use {current_post_id} to update current post where the form is located

    I think you tried last one, but used {post_id} instead of {current_post_id}.

    Please let me know if that works!

    Sorry, but I must be missing something. I need to perform updates on CPT posts. The user selects the post, and then I open a page with the content of the post in the Gravity Form post body. I have NO IDEA what the post ID is going to be before the user selects a post so I can’t fill in the “postID” field in the settings!
    What am I missing?

    Plugin Author Alex Chernov

    (@alexusblack)

    Hi lwoods, you can use {} button (to the right of the post id field) to insert the form field value via gravity forms merge tag.

    Hi Alex,

    I have a gravity form at here: https://woocommerce-659373-2481884.cloudwaysapps.com/submit-course-advanced

    I want to edit my posts on this form. How can I do it? I’m a unclear on how we link the form. I added the {post_id} in the Target Post Settings of this form, but I’m not sure if that is correct.

    Can you help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Connect to CPT’ is closed to new replies.