Title: Add additional Button to start a javascript action
Last modified: January 5, 2021

---

# Add additional Button to start a javascript action

 *  Resolved [deltavision](https://wordpress.org/support/users/deltavision/)
 * (@deltavision)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/add-additional-button-to-start-a-javascript-action/)
 * I use Contact Form 7 as a form to order a software product. With the normal submit
   button I get the mail with the address of the customer and the desired number
   of licenses. Now I want to have a **second **button, “Buy with credit card”, 
   which should call a javascript. The script should read the form fields and dynamically
   create a new link that redirects to the website of the credit card platform. 
   How can I do this? How can I link the second button with my Javascript?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/add-additional-button-to-start-a-javascript-action/#post-13870525)
 * Hello [@deltavision](https://wordpress.org/support/users/deltavision/),
 * This question it’s an advanced customization you want to apply to your form, 
   which is outside the scope of the plugin support forum.
 * However, you can read the [Developer’s cookbook](https://contactform7.com/category/cookbook/)
   posts to learn more about how to customize Contact Form 7.
 * Best regards,
    Yordan.
 *  Thread Starter [deltavision](https://wordpress.org/support/users/deltavision/)
 * (@deltavision)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/add-additional-button-to-start-a-javascript-action/#post-13875656)
 * Hi Yordan
 * Thank you for the quick answer and the link.
    Then I know now at least that I
   have not overlooked anything and this is not so easy to do. Will then read a 
   little deeper into the programming. kind regards, Marcel

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add additional Button to start a javascript action’ is closed to new 
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [deltavision](https://wordpress.org/support/users/deltavision/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/add-additional-button-to-start-a-javascript-action/#post-13875656)
 * Status: resolved