I would like to create a multistep Cred form like following:
First Step:
the user choose a parent of the post then clicks on "Next"
Second Step:
some fields show up and will be filled out automatically from values of the Parent post.
I know it's possible to do this if i create double pages and double forms. a form for the parent that redirect to an edit form with all needed fields. but i wonder if there is away to do this within one Cred form only. (multisteps with one form)
There's not an easy way to do this all in one Form, because there's no JavaScript API. You could do something similar with a View, a Create Child Post link, and one Form, but after the User selects a parent post they must navigate to another page.
- Create a Form that creates Child Posts.
- Insert the Form in a Content Template or Template Layout.
- Create a View of Parent posts. You can include custom search filters so your Users can find the desired Parent easily.
- In the Loop of the View, insert a Create Child Post link and configure it to point to your Child Post Form.
- Edit the Child Post Form and use the urlparam containing the parent post ID to set the default values for any form fields.
Another option is to place the create child post Form directly on the parent post page, so your Users don't have to navigate away from the parent post to create a child post. Let me know if you have questions about either of these options.