Deleting form entries and associated custom post types entries

Question: I have a form that is attached to a custom post type. If I edit either the form entry or the CPT post, it changes both of them. That’s good. If I delete a form entry it also deletes the CPT post. That’s good. But if I delete a CPT entry, it does not delete the form entry, as if they really are not tied together.  It seems like they should be tied together both ways.  Is this the proper function, or is something not working right?

(Also, if I ever want to delete a form entry without deleting the CPT post, can I somehow?)

 

When you delete a post is goes to your trash. When you completely delete it (empty the trash), the entry is deleted as well.

There's not a built in way to delete the entry without deleting the post. However, you can delete the entry, and then go the to WP trash and recover the post.

Now that I think about it, I guess I can see how you could not force the form entry to delete if I delete the custom post type post, since that's a WP function.  So I better make sure to remember that when I want to remove a custom post type post that was made with it's associated form entry, that I do it in Formidable Entries not in my custom post type management area. Otherwise, my custom displays will still show the entries that I've deleted directly from the custom post type, right?

"There's not a built in way to delete the entry without deleting the post. However, you can delete the entry, and then go the to WP trash and recover the post."

I better ask you something important then.  Let's say in the future, for whatever reason, I decide to use another system to show the custom post types I've built with Formidable forms, an no longer need the formidable form entry for that CPT.  All the hundreds or thousands of entries that I have in my Formidable entries will no longer be needed. Could I ever disassociate them from the custom post type and get rid of them to clean up my database without deleting them/recovering the custom post type post from trash, one by one?

You can add a status field to your form and then add a row to filter your custom display if you'd like (Status field is equal to Published).

You could do an sql call to clear out the post_id column in the frm_entries table, and then delete the entries.

Topic closed.