How to open new form when click on button in CF7?

I created a form using contact form 7. In that form two buttons are there. When you click on submit button it will execute the current created form. What I want is, when I click on another button, it should display another form take 2-3 fields with submit button.


It's not completely clear what exatly you're trying to achieve. do you want the second form to show on the same page, or you want it to be on another page (meaning a click on second button will redirect the user)?

If you want to redirect to another page with a new form, you can just use:

[submit "Submit this form"]

<button href="">Open the other form</button>

Please note that generally including two buttons is a bad practice. Why not using a normal link for the second form?...

Contact Form 7 only supports a single Submit button ( as per standard HTML forms).

To add a second active button you would need to use custom Javascript.

Need Your Help

C++ vector iterator: erase() last item crash

c++ crash iterator erase

The following code checks if a ball overlaps with a brick. The brick is highlighted and erased from the list if the overlap occurs.

wordpress pagination with custom permalinks

php wordpress

I use this "custom" pagination script for my wordpress template: