PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

[resolved] How to add hyperlinks in the form?

  1. webnative
    Member

    I tried adding hyperlinks in GF forms and it just prints the html tag. Is there a way I can apply hyperlinks to descriptions and labels within the form?

    Posted 14 years ago on Wednesday June 30, 2010 | Permalink
  2. HTML isn't currently allowed in the labels, but you can add them with some jQuery as in the following example.

    <script type="text/javascript">
     jQuery.noConflict();
       jQuery(document).ready(function($) {
    
          $(".gchoice_5_1 label").html('I have read and agree to the <a href="http://www.google.com/accounts/TOS" name="terms" target="_blank">terms and conditions</a>');
    
       });
     </script>

    just replace the "gchoice_5_1" with the actual ID from your form

    Posted 14 years ago on Wednesday June 30, 2010 | Permalink
  3. webnative
    Member

    Kevin, thank you! That works.

    Posted 14 years ago on Wednesday June 30, 2010 | Permalink

This topic has been resolved and has been closed to new replies.