I am trying to:
Get CRED form to redirect. But encountering problems. ...
1) tried the 'What happens after submit' : various things tried
a) firstly - I want to redirect to page that would show what's just created AND have form for adding related content to parent/child/sibling CPTS.
So I would like to use hook to get content created by the fist form to be associated with the next form / page/ post / content that is redirected to.
I been following Beda's advice on hooks. having a problem here with my understanding but also new problems. https://toolset.com/forums/topic/passing-new-cpt-idslug-to-another-form/
I set up a cred_success_redirect hook in GP child theme but not working. So I've commented this out now and gone back to GP original to test.
b) For testing form further - I tried Edit Post form ... changing 'what happens after submit' action to something else (for testing). I chose display a message' but then the form somehow RENAMES ITSELF. The first from renamed itself to SAMPLE PAGE, so where it was already embedded in another post it now says form does not exist. Tho the same ID does exist. And the title but the slug has somehow been changed.
I been flushing cache after making changes and saving also to try to see if that helped but it didn't.
Now I have this form with 'sample-page' as it's slug. AND HOW DO YOU CHANGE A CRED FORM SLUG?
2) I made a Clone of the form, placed it in the post I want it. Set the 'what happens after' to display a post (redirect doesn't work) comes back to same page.
Changed to : display a page... (doesn't work) come back to same page.
Changed to: Tried change to 'display a message' - form seems to rename itself again.
So where the form was embedded it says, does not exist - because the slug has changed.
Now I have these two forms, which I see when trying to insert using CRED forms button.
[cred_form form="sample-page"]
[cred_form form="sample-page-2"]