The user had three custom post types (cpt1, cpt2, cpt3) and a custom field group called "cf" assigned to each of them. They wanted to use the same form for all custom post types to submit data from the frontend. However, Toolset only allows a separate form for each custom post type.
Solution:
-Create separate forms for each custom post type (cpt1, cpt2, cpt3).
- Go to Toolset > Content Templates and create a new Content Template, without assigning it to any post type (e.g., name it "conditional-logic").
- In the Content Template, use Conditional Blocks and Forms Blocks to create the desired conditions for each custom post type. For example:
[wpv-conditional if="( '[wpv-post-type]' eq 'cpt1' )"]
[shortcode for the form for cpt1]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-type]' eq 'cpt2' )"]
[shortcode for the form for cpt2]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-type]' eq 'cpt3
[/wpv-conditional]