Hi, I have a CPT with custom taxonomies and a group fields.
I would like to create a form with CRED, but I don't want it to be to submit a new item of my CPT but only to add fields on it.
It's basically for a FAQ. I want people to be able to submit questions. And I want the questions to be added automatically as a field. Then the owner of the post will be able to answer it and it will be displayed automatically.
So I don't want a whole page for the form, I want a small form that I can add to my single post page that I've already created with a content template.
Thanks!
Hi, not exactly, I don't want a FAQ "page", I want a FAQ inside another page, which is a single post from a CPT created with toolset. I want to add a form in that page so that people ask questions, and then the question becomes a field, and once it's answered, the field appears (both question and answer then), using my content template for that single post.
Thanks.
Ok so I have an idea of what you would like to achieve.
This is going to require a Parent/Child relationship in Types. What you need to do is to go to Types and edit the CPT that you want the question to appear on.
Then if you have a questions CPT then you will set the questions CPT as the child of the CPT that you want the questions to appear on.
Next you will need to create a CRED form for this questions CPT and auto generate the form so that it get the fields for the parent.
Then go the page and add the child form link to that page by clicking the CRED form button. See Screenshot.
This should allow you to start creating the questions for that page. Please let me know if you understand this step and then we can move to displaying the questions and answers.
Hi Shane, thanks for the reply. I've done what you said but not sure it's what I want or maybe I misunderstood something.
I've created a CPT called FAQ and set it as child of my original CPT (called brand).
Then I have created the form through CRED for the child (FAQ) and have displayed it on the content template for my single posts of the parent CPT (brand).
But the form includes all the fields of the brand (parent CPT), while I just want people to be able to type a question, so to kind-of add a field to my parent CPT, not to fill-in all the fields as they are already filled in and displayed on the page.
Thanks!