Title: Inserting Hyperlink into checkbox: JS solution
Last modified: October 16, 2019

---

# Inserting Hyperlink into checkbox: JS solution

 *  [kfriedman](https://wordpress.org/support/users/kfriedman/)
 * (@kfriedman)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/inserting-hyperlink-into-checkbox-js-solution/)
 * Here is a common fix for inserting your hyperlink into a checkbox. Just remove
   comments down below (/* */), change out all of your own values, and place script
   in the body of your HTML page.
 * /*
 * <script>
 * // Generate anchor element and insert after span element
    const yourSpanElement
   = document.querySelector(‘.yourSpanClass .wpcf7-list-item-label’); yourSpanElement.
   insertAdjacentHTML(‘afterend’, ‘place your anchor element here’);
 * </script>
 * */
    -  This topic was modified 6 years, 7 months ago by [kfriedman](https://wordpress.org/support/users/kfriedman/).
    -  This topic was modified 6 years, 7 months ago by [kfriedman](https://wordpress.org/support/users/kfriedman/).

The topic ‘Inserting Hyperlink into checkbox: JS solution’ 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

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

 * 0 replies
 * 1 participant
 * Last reply from: [kfriedman](https://wordpress.org/support/users/kfriedman/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/inserting-hyperlink-into-checkbox-js-solution/)
 * Status: not a support question